You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v0.16.1.txt
+74-95
Original file line number
Diff line number
Diff line change
@@ -31,44 +31,6 @@ Highlights include:
31
31
Enhancements
32
32
~~~~~~~~~~~~
33
33
34
-
- ``BusinessHour`` offset is now supported, which represents business hours starting from 09:00 - 17:00 on ``BusinessDay`` by default. See :ref:`Here <timeseries.businesshour>` for details. (:issue:`7905`)
35
-
36
-
.. ipython:: python
37
-
38
-
Timestamp('2014-08-01 09:00') + BusinessHour()
39
-
Timestamp('2014-08-01 07:00') + BusinessHour()
40
-
Timestamp('2014-08-01 16:30') + BusinessHour()
41
-
42
-
- ``DataFrame.diff`` now takes an ``axis`` parameter that determines the direction of differencing (:issue:`9727`)
43
-
44
-
- Allow ``clip``, ``clip_lower``, and ``clip_upper`` to accept array-like arguments as thresholds (This is a regression from 0.11.0). These methods now have an ``axis`` parameter which determines how the Series or DataFrame will be aligned with the threshold(s). (:issue:`6966`)
45
-
46
-
- ``DataFrame.mask()`` and ``Series.mask()`` now support same keywords as ``where`` (:issue:`8801`)
47
-
48
-
- ``drop`` function can now accept ``errors`` keyword to suppress ``ValueError`` raised when any of label does not exist in the target data. (:issue:`6736`)
- Allow conversion of values with dtype ``datetime64`` or ``timedelta64`` to strings using ``astype(str)`` (:issue:`9757`)
56
-
- ``get_dummies`` function now accepts ``sparse`` keyword. If set to ``True``, the return ``DataFrame`` is sparse, e.g. ``SparseDataFrame``. (:issue:`8823`)
57
-
- ``Period`` now accepts ``datetime64`` as value input. (:issue:`9054`)
58
-
59
-
- Allow timedelta string conversion when leading zero is missing from time definition, ie `0:00:00` vs `00:00:00`. (:issue:`9570`)
60
-
- Allow ``Panel.shift`` with ``axis='items'`` (:issue:`9890`)
61
-
62
-
- Trying to write an excel file now raises ``NotImplementedError`` if the ``DataFrame`` has a ``MultiIndex`` instead of writing a broken Excel file. (:issue:`9794`)
63
-
- Allow ``Categorical.add_categories`` to accept ``Series`` or ``np.array``. (:issue:`9927`)
64
-
65
-
- Add/delete ``str/dt/cat`` accessors dynamically from ``__dir__``. (:issue:`9910`)
66
-
- Add ``normalize`` as a ``dt`` accessor method. (:issue:`10047`)
67
-
68
-
- ``DataFrame`` and ``Series`` now have ``_constructor_expanddim`` property as overridable constructor for one higher dimensionality data. This should be used only when it is really needed, see :ref:`here <ref-subclassing-pandas>`
69
-
70
-
- ``pd.lib.infer_dtype`` now returns ``'bytes'`` in Python 3 where appropriate. (:issue:`10032`)
71
-
72
34
.. _whatsnew_0161.enhancements.categoricalindex:
73
35
74
36
CategoricalIndex
@@ -188,16 +150,6 @@ String Methods Enhancements
188
150
:ref:`Continuing from v0.16.0 <whatsnew_0160.enhancements.string>`, the following
189
151
enhancements make string operations easier and more consistent with standard python string operations.
190
152
191
-
- The following new methods are accesible via ``.str`` accessor to apply the function to each values. (:issue:`9766`, :issue:`9773`, :issue:`10031`, :issue:`10045`, :issue:`10052`)
- Added ``StringMethods`` (``.str`` accessor) to ``Index`` (:issue:`9068`)
203
155
@@ -220,6 +172,14 @@ enhancements make string operations easier and more consistent with standard pyt
220
172
idx.str.startswith('a')
221
173
s[s.index.str.startswith('a')]
222
174
175
+
- The following new methods are accesible via ``.str`` accessor to apply the function to each values. (:issue:`9766`, :issue:`9773`, :issue:`10031`, :issue:`10045`, :issue:`10052`)
- ``split`` now takes ``expand`` keyword to specify whether to expand dimensionality. ``return_type`` is deprecated. (:issue:`9847`)
225
185
@@ -244,14 +204,59 @@ enhancements make string operations easier and more consistent with standard pyt
244
204
245
205
- Improved ``extract`` and ``get_dummies`` methods for ``Index.str`` (:issue:`9980`)
246
206
247
-
.. _whatsnew_0161.api:
248
207
249
-
API changes
250
-
~~~~~~~~~~~
208
+
.. _whatsnew_0161.enhancements.other:
209
+
210
+
Other Enhancements
211
+
^^^^^^^^^^^^^^^^^^
212
+
213
+
- ``BusinessHour`` offset is now supported, which represents business hours starting from 09:00 - 17:00 on ``BusinessDay`` by default. See :ref:`Here <timeseries.businesshour>` for details. (:issue:`7905`)
214
+
215
+
.. ipython:: python
251
216
217
+
from pandas.tseries.offsets import BusinessHour
218
+
Timestamp('2014-08-01 09:00') + BusinessHour()
219
+
Timestamp('2014-08-01 07:00') + BusinessHour()
220
+
Timestamp('2014-08-01 16:30') + BusinessHour()
252
221
222
+
- ``DataFrame.diff`` now takes an ``axis`` parameter that determines the direction of differencing (:issue:`9727`)
253
223
224
+
- Allow ``clip``, ``clip_lower``, and ``clip_upper`` to accept array-like arguments as thresholds (This is a regression from 0.11.0). These methods now have an ``axis`` parameter which determines how the Series or DataFrame will be aligned with the threshold(s). (:issue:`6966`)
225
+
226
+
- ``DataFrame.mask()`` and ``Series.mask()`` now support same keywords as ``where`` (:issue:`8801`)
254
227
228
+
- ``drop`` function can now accept ``errors`` keyword to suppress ``ValueError`` raised when any of label does not exist in the target data. (:issue:`6736`)
- Add support for separating years and quarters using dashes, for
236
+
example 2014-Q1. (:issue:`9688`)
237
+
238
+
- Allow conversion of values with dtype ``datetime64`` or ``timedelta64`` to strings using ``astype(str)`` (:issue:`9757`)
239
+
- ``get_dummies`` function now accepts ``sparse`` keyword. If set to ``True``, the return ``DataFrame`` is sparse, e.g. ``SparseDataFrame``. (:issue:`8823`)
240
+
- ``Period`` now accepts ``datetime64`` as value input. (:issue:`9054`)
241
+
242
+
- Allow timedelta string conversion when leading zero is missing from time definition, ie `0:00:00` vs `00:00:00`. (:issue:`9570`)
243
+
- Allow ``Panel.shift`` with ``axis='items'`` (:issue:`9890`)
244
+
245
+
- Trying to write an excel file now raises ``NotImplementedError`` if the ``DataFrame`` has a ``MultiIndex`` instead of writing a broken Excel file. (:issue:`9794`)
246
+
- Allow ``Categorical.add_categories`` to accept ``Series`` or ``np.array``. (:issue:`9927`)
247
+
248
+
- Add/delete ``str/dt/cat`` accessors dynamically from ``__dir__``. (:issue:`9910`)
249
+
- Add ``normalize`` as a ``dt`` accessor method. (:issue:`10047`)
250
+
251
+
- ``DataFrame`` and ``Series`` now have ``_constructor_expanddim`` property as overridable constructor for one higher dimensionality data. This should be used only when it is really needed, see :ref:`here <ref-subclassing-pandas>`
252
+
253
+
- ``pd.lib.infer_dtype`` now returns ``'bytes'`` in Python 3 where appropriate. (:issue:`10032`)
254
+
255
+
256
+
.. _whatsnew_0161.api:
257
+
258
+
API changes
259
+
~~~~~~~~~~~
255
260
256
261
- When passing in an ax to ``df.plot( ..., ax=ax)``, the `sharex` kwarg will now default to `False`.
257
262
The result is that the visibility of xlabels and xticklabels will not anymore be changed. You
@@ -260,16 +265,19 @@ API changes
260
265
If pandas creates the subplots itself (e.g. no passed in `ax` kwarg), then the
261
266
default is still ``sharex=True`` and the visibility changes are applied.
262
267
263
-
264
-
265
-
- Add support for separating years and quarters using dashes, for
266
-
example 2014-Q1. (:issue:`9688`)
267
-
268
268
- :meth:`~pandas.DataFrame.assign` now inserts new columns in alphabetical order. Previously
269
269
the order was arbitrary. (:issue:`9777`)
270
270
271
271
- By default, ``read_csv`` and ``read_table`` will now try to infer the compression type based on the file extension. Set ``compression=None`` to restore the previous behavior (no decompression). (:issue:`9770`)
272
272
273
+
.. _whatsnew_0161.deprecations:
274
+
275
+
Deprecations
276
+
^^^^^^^^^^^^
277
+
278
+
- ``Series.str.split``'s ``return_type`` keyword was removed in favor of ``expand`` (:issue:`9847`)
- ``Series.str.split``'s ``return_type`` keyword was removed in favor of ``expand`` (:issue:`9847`)
325
325
326
326
.. _whatsnew_0161.performance:
327
327
@@ -333,7 +333,6 @@ Performance Improvements
333
333
- Improved the performance of ``pd.lib.max_len_string_array`` by 5-7x (:issue:`10024`)
334
334
335
335
336
-
337
336
.. _whatsnew_0161.bug_fixes:
338
337
339
338
Bug Fixes
@@ -361,7 +360,6 @@ Bug Fixes
361
360
- Bug where repeated plotting of ``DataFrame`` with a ``DatetimeIndex`` may raise ``TypeError`` (:issue:`9852`)
362
361
- Bug in ``setup.py`` that would allow an incompat cython version to build (:issue:`9827`)
363
362
- Bug in plotting ``secondary_y`` incorrectly attaches ``right_ax`` property to secondary axes specifying itself recursively. (:issue:`9861`)
364
-
365
363
- Bug in ``Series.quantile`` on empty Series of type ``Datetime`` or ``Timedelta`` (:issue:`9675`)
366
364
- Bug in ``where`` causing incorrect results when upcasting was required (:issue:`9731`)
367
365
- Bug in ``FloatArrayFormatter`` where decision boundary for displaying "small" floats in decimal format is off by one order of magnitude for a given display.precision (:issue:`9764`)
@@ -372,20 +370,13 @@ Bug Fixes
372
370
- Bug in index equality comparisons using ``==`` failing on Index/MultiIndex type incompatibility (:issue:`9785`)
373
371
- Bug in which ``SparseDataFrame`` could not take `nan` as a column name (:issue:`8822`)
374
372
- Bug in ``to_msgpack`` and ``read_msgpack`` zlib and blosc compression support (:issue:`9783`)
375
-
376
373
- Bug ``GroupBy.size`` doesn't attach index name properly if grouped by ``TimeGrouper`` (:issue:`9925`)
377
374
- Bug causing an exception in slice assignments because ``length_of_indexer`` returns wrong results (:issue:`9995`)
378
375
- Bug in csv parser causing lines with initial whitespace plus one non-space character to be skipped. (:issue:`9710`)
379
376
- Bug in C csv parser causing spurious NaNs when data started with newline followed by whitespace. (:issue:`10022`)
380
-
381
377
- Bug causing elements with a null group to spill into the final group when grouping by a ``Categorical`` (:issue:`9603`)
382
378
- Bug where .iloc and .loc behavior is not consistent on empty dataframes (:issue:`9964`)
383
-
384
379
- Bug in invalid attribute access on a ``TimedeltaIndex`` incorrectly raised ``ValueError`` instead of ``AttributeError`` (:issue:`9680`)
385
-
386
-
387
-
388
-
389
380
- Bug in unequal comparisons between categorical data and a scalar, which was not in the categories (e.g. ``Series(Categorical(list("abc"), ordered=True)) > "d"``. This returned ``False`` for all elements, but now raises a ``TypeError``. Equality comparisons also now return ``False`` for ``==`` and ``True`` for ``!=``. (:issue:`9848`)
390
381
- Bug in DataFrame ``__setitem__`` when right hand side is a dictionary (:issue:`9874`)
391
382
- Bug in ``where`` when dtype is ``datetime64/timedelta64``, but dtype of other is not (:issue:`9804`)
@@ -394,25 +385,13 @@ Bug Fixes
394
385
- Bug in ``DataFrame`` constructor when ``columns`` parameter is set, and ``data`` is an empty list (:issue:`9939`)
395
386
- Bug in bar plot with ``log=True`` raises ``TypeError`` if all values are less than 1 (:issue:`9905`)
396
387
- Bug in horizontal bar plot ignores ``log=True`` (:issue:`9905`)
397
-
398
-
399
-
400
388
- Bug in PyTables queries that did not return proper results using the index (:issue:`8265`, :issue:`9676`)
401
-
402
-
403
-
404
-
405
389
- Bug where dividing a dataframe containing values of type ``Decimal`` by another ``Decimal`` would raise. (:issue:`9787`)
406
390
- Bug where using DataFrames asfreq would remove the name of the index. (:issue:`9885`)
407
391
- Bug causing extra index point when resample BM/BQ (:issue:`9756`)
408
392
- Changed caching in ``AbstractHolidayCalendar`` to be at the instance level rather than at the class level as the latter can result in unexpected behaviour. (:issue:`9552`)
409
-
410
393
- Fixed latex output for multi-indexed dataframes (:issue:`9778`)
411
394
- Bug causing an exception when setting an empty range using ``DataFrame.loc`` (:issue:`9596`)
412
-
413
-
414
-
415
-
416
395
- Bug in hiding ticklabels with subplots and shared axes when adding a new plot to an existing grid of axes (:issue:`9158`)
417
396
- Bug in ``transform`` and ``filter`` when grouping on a categorical variable (:issue:`9921`)
418
397
- Bug in ``transform`` when groups are equal in number and dtype to the input index (:issue:`9700`)
0 commit comments