Skip to content

Commit e84b730

Browse files
committed
DOC: whatsnew 0.16.2 edits
1 parent 3cdd1df commit e84b730

File tree

1 file changed

+27
-30
lines changed

1 file changed

+27
-30
lines changed

doc/source/whatsnew/v0.16.2.txt

Lines changed: 27 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,16 @@ We recommend that all users upgrade to this version.
1111
Highlights include:
1212

1313
- A new ``pipe`` method, see :ref:`here <whatsnew_0162.enhancements.pipe>`
14-
- Documentation on how to use ``numba`` with *pandas*, see :ref:`here <enhancingperf.numba>`
14+
- Documentation on how to use numba_ with *pandas*, see :ref:`here <enhancingperf.numba>`
1515

1616
Check the :ref:`API Changes <whatsnew_0162.api>` before updating.
1717

1818
.. contents:: What's new in v0.16.2
1919
:local:
2020
:backlinks: none
2121

22+
.. _numba: http://numba.pydata.org
23+
2224
.. _whatsnew_0162.enhancements:
2325

2426
New features
@@ -33,21 +35,21 @@ We've introduced a new method :meth:`DataFrame.pipe`. As suggested by the name,
3335
should be used to pipe data through a chain of function calls.
3436
The goal is to avoid confusing nested function calls like
3537

36-
.. code-block:: python
38+
.. code-block:: python
3739

38-
# df is a DataFrame
39-
# f, g, and h are functions that take and return DataFrames
40-
f(g(h(df), arg1=1), arg2=2, arg3=3)
40+
# df is a DataFrame
41+
# f, g, and h are functions that take and return DataFrames
42+
f(g(h(df), arg1=1), arg2=2, arg3=3)
4143

4244
The logic flows from inside out, and function names are separated from their keyword arguments.
4345
This can be rewritten as
4446

45-
.. code-block:: python
47+
.. code-block:: python
4648

47-
(df.pipe(h)
48-
.pipe(g, arg1=1)
49-
.pipe(f, arg2=2, arg3=3)
50-
)
49+
(df.pipe(h)
50+
.pipe(g, arg1=1)
51+
.pipe(f, arg2=2, arg3=3)
52+
)
5153

5254
Now both the code and the logic flow from top to bottom. Keyword arguments are next to
5355
their functions. Overall the code is much more readable.
@@ -80,13 +82,13 @@ See the :ref:`documentation <basics.pipe>` for more. (:issue:`10129`)
8082
.. _magrittr: https://github.com/smbache/magrittr
8183
.. _R: http://www.r-project.org
8284

83-
- Added `rsplit` to Index/Series StringMethods (:issue:`10303`)
84-
8585
.. _whatsnew_0162.enhancements.other:
8686

8787
Other Enhancements
8888
^^^^^^^^^^^^^^^^^^
8989

90+
- Added `rsplit` to Index/Series StringMethods (:issue:`10303`)
91+
9092
- Removed the hard-coded size limits on the ``DataFrame`` HTML representation
9193
in the IPython notebook, and leave this to IPython itself (only for IPython
9294
v3.0 or greater). This eliminates the duplicate scroll bars that appeared in
@@ -97,15 +99,14 @@ Other Enhancements
9799
You can also configure the way DataFrames are displayed using the pandas
98100
options, see here :ref:`here <options.frequently_used>`.
99101

100-
- ``axis`` parameter of ``DataFrame.quantile`` now accepts also ``index``
101-
and ``column``. (:issue:`9543`)
102+
- ``axis`` parameter of ``DataFrame.quantile`` now accepts also ``index`` and ``column``. (:issue:`9543`)
102103

103104
.. _whatsnew_0162.api:
104105

105106
API Changes
106107
~~~~~~~~~~~
107108

108-
- ``Holiday`` now raises ``NotImplementedError`` if both ``offset`` and ``observance`` are used in constructor instead of returning an incorrect result (:issue:`10217`).
109+
- ``Holiday`` now raises ``NotImplementedError`` if both ``offset`` and ``observance`` are used in the constructor instead of returning an incorrect result (:issue:`10217`).
109110

110111

111112
.. _whatsnew_0162.performance:
@@ -122,50 +123,46 @@ Bug Fixes
122123
~~~~~~~~~
123124

124125
- Bug in ``Series.hist`` raises an error when a one row ``Series`` was given (:issue:`10214`)
125-
- Bug where read_hdf store.select modifies the passed columns list when
126-
multi-indexed (:issue:`7212`)
126+
- Bug where ``HDFStore.select`` modifies the passed columns list (:issue:`7212`)
127127
- Bug in ``Categorical`` repr with ``display.width`` of ``None`` in Python 3 (:issue:`10087`)
128128
- Bug in ``to_json`` with certain orients and a ``CategoricalIndex`` would segfault (:issue:`10317`)
129129
- Bug where some of the nan funcs do not have consistent return dtypes (:issue:`10251`)
130130
- Bug in ``DataFrame.quantile`` on checking that a valid axis was passed (:issue:`9543`)
131-
- Bug in groupby.apply aggregation for Categorical not preserving categories (:issue:`10138`)
131+
- Bug in ``groupby.apply`` aggregation for ``Categorical`` not preserving categories (:issue:`10138`)
132132
- Bug in ``to_csv`` where ``date_format`` is ignored if the ``datetime`` is fractional (:issue:`10209`)
133133
- Bug in ``DataFrame.to_json`` with mixed data types (:issue:`10289`)
134134
- Bug in cache updating when consolidating (:issue:`10264`)
135135
- Bug in ``mean()`` where integer dtypes can overflow (:issue:`10172`)
136-
- Bug where Panel.from_dict does not set dtype when specified (:issue:`10058`)
136+
- Bug where ``Panel.from_dict`` does not set dtype when specified (:issue:`10058`)
137137
- Bug in ``Index.union`` raises ``AttributeError`` when passing array-likes. (:issue:`10149`)
138138
- Bug in ``Timestamp``'s' ``microsecond``, ``quarter``, ``dayofyear``, ``week`` and ``daysinmonth`` properties return ``np.int`` type, not built-in ``int``. (:issue:`10050`)
139139
- Bug in ``NaT`` raises ``AttributeError`` when accessing to ``daysinmonth``, ``dayofweek`` properties. (:issue:`10096`)
140140
- Bug in Index repr when using the ``max_seq_items=None`` setting (:issue:`10182`).
141141
- Bug in getting timezone data with ``dateutil`` on various platforms ( :issue:`9059`, :issue:`8639`, :issue:`9663`, :issue:`10121`)
142-
- Bug in display datetimes with mixed frequencies uniformly; display 'ms' datetimes to the proper precision. (:issue:`10170`)
143-
- Bug in ``setitem`` where type pormotion is applied to entire block (:issue:`10280`)
142+
- Bug in displaying datetimes with mixed frequencies; display 'ms' datetimes to the proper precision. (:issue:`10170`)
143+
- Bug in ``setitem`` where type promotion is applied to the entire block (:issue:`10280`)
144144
- Bug in ``Series`` arithmetic methods may incorrectly hold names (:issue:`10068`)
145145
- Bug in ``GroupBy.get_group`` when grouping on multiple keys, one of which is categorical. (:issue:`10132`)
146146
- Bug in ``DatetimeIndex`` and ``TimedeltaIndex`` names are lost after timedelta arithmetics ( :issue:`9926`)
147147
- Bug in ``DataFrame`` construction from nested ``dict`` with ``datetime64`` (:issue:`10160`)
148148
- Bug in ``Series`` construction from ``dict`` with ``datetime64`` keys (:issue:`9456`)
149-
- Bug in `Series.plot(label="LABEL")` not correctly setting the label (:issue:`10119`)
150-
- Bug in `plot` not defaulting to matplotlib `axes.grid` setting (:issue:`9792`)
151-
- Bug causing strings containing an exponent but no decimal to be parsed as ints instead of floats in python csv parser. (:issue:`9565`)
149+
- Bug in ``Series.plot(label="LABEL")`` not correctly setting the label (:issue:`10119`)
150+
- Bug in ``plot`` not defaulting to matplotlib ``axes.grid`` setting (:issue:`9792`)
151+
- Bug causing strings containing an exponent, but no decimal to be parsed as ``int`` instead of ``float`` in ``engine='python'`` for the ``read_csv`` parser (:issue:`9565`)
152152
- Bug in ``Series.align`` resets ``name`` when ``fill_value`` is specified (:issue:`10067`)
153153
- Bug in ``read_csv`` causing index name not to be set on an empty DataFrame (:issue:`10184`)
154154
- Bug in ``SparseSeries.abs`` resets ``name`` (:issue:`10241`)
155155
- Bug in ``TimedeltaIndex`` slicing may reset freq (:issue:`10292`)
156-
- Bug in GroupBy.get_group raises ValueError when group key contains NaT (:issue:`6992`)
156+
- Bug in ``GroupBy.get_group`` raises ``ValueError`` when group key contains ``NaT`` (:issue:`6992`)
157157
- Bug in ``SparseSeries`` constructor ignores input data name (:issue:`10258`)
158-
- Bug in ``Categorical.remove_categories`` causing a ValueError when removing the ``NaN`` category if underlying dtype is floating-point (:issue:`10156`)
158+
- Bug in ``Categorical.remove_categories`` causing a ``ValueError`` when removing the ``NaN`` category if underlying dtype is floating-point (:issue:`10156`)
159159
- Bug where infer_freq infers timerule (WOM-5XXX) unsupported by to_offset (:issue:`9425`)
160160
- Bug in ``DataFrame.to_hdf()`` where table format would raise a seemingly unrelated error for invalid (non-string) column names. This is now explicitly forbidden. (:issue:`9057`)
161161
- Bug to handle masking empty ``DataFrame`` (:issue:`10126`).
162162
- Bug where MySQL interface could not handle numeric table/column names (:issue:`10255`)
163163
- Bug in ``read_csv`` with a ``date_parser`` that returned a ``datetime64`` array of other time resolution than ``[ns]`` (:issue:`10245`)
164-
- Bug in ``Panel.apply`` when the result has ndim = 0 (:issue:`10332`)
164+
- Bug in ``Panel.apply`` when the result has ndim=0 (:issue:`10332`)
165165
- Bug in ``read_hdf`` where ``auto_close`` could not be passed (:issue:`9327`).
166166
- Bug in ``read_hdf`` where open stores could not be used (:issue:`10330`).
167-
168167
- Bug in adding empty ``DataFrame``s, now results in a ``DataFrame`` that ``.equals`` an empty ``DataFrame`` (:issue:`10181`).
169-
170-
171168
- Bug in ``to_hdf`` and ``HDFStore`` which did not check that complib choices were valid (:issue:`4582`, :issue:`8874`).

0 commit comments

Comments
 (0)