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
+56-73Lines changed: 56 additions & 73 deletions
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
@@ -244,14 +206,58 @@ enhancements make string operations easier and more consistent with standard pyt
244
206
245
207
- Improved ``extract`` and ``get_dummies`` methods for ``Index.str`` (:issue:`9980`)
246
208
247
-
.. _whatsnew_0161.api:
209
+
.. _whatsnew_0161.enhancements.other:
248
210
249
-
API changes
250
-
~~~~~~~~~~~
211
+
Other Enhancements
212
+
^^^^^^^^^^^^^^^^^^
213
+
214
+
- ``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`)
215
+
216
+
.. ipython:: python
217
+
218
+
Timestamp('2014-08-01 09:00') + BusinessHour()
219
+
Timestamp('2014-08-01 07:00') + BusinessHour()
220
+
Timestamp('2014-08-01 16:30') + BusinessHour()
221
+
222
+
- ``DataFrame.diff`` now takes an ``axis`` parameter that determines the direction of differencing (:issue:`9727`)
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`)
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`)
251
254
252
255
253
256
257
+
.. _whatsnew_0161.api:
254
258
259
+
API changes
260
+
~~~~~~~~~~~
255
261
256
262
- When passing in an ax to ``df.plot( ..., ax=ax)``, the `sharex` kwarg will now default to `False`.
257
263
The result is that the visibility of xlabels and xticklabels will not anymore be changed. You
@@ -260,16 +266,20 @@ API changes
260
266
If pandas creates the subplots itself (e.g. no passed in `ax` kwarg), then the
261
267
default is still ``sharex=True`` and the visibility changes are applied.
262
268
263
-
264
-
265
-
- Add support for separating years and quarters using dashes, for
266
-
example 2014-Q1. (:issue:`9688`)
267
-
268
269
- :meth:`~pandas.DataFrame.assign` now inserts new columns in alphabetical order. Previously
269
270
the order was arbitrary. (:issue:`9777`)
270
271
271
272
- 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
273
274
+
.. _whatsnew_0161.deprecations:
275
+
276
+
Deprecations
277
+
^^^^^^^^^^^^
278
+
279
+
- ``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
329
326
330
.. _whatsnew_0161.performance:
327
331
@@ -333,7 +337,6 @@ Performance Improvements
333
337
- Improved the performance of ``pd.lib.max_len_string_array`` by 5-7x (:issue:`10024`)
334
338
335
339
336
-
337
340
.. _whatsnew_0161.bug_fixes:
338
341
339
342
Bug Fixes
@@ -361,7 +364,6 @@ Bug Fixes
361
364
- Bug where repeated plotting of ``DataFrame`` with a ``DatetimeIndex`` may raise ``TypeError`` (:issue:`9852`)
362
365
- Bug in ``setup.py`` that would allow an incompat cython version to build (:issue:`9827`)
363
366
- Bug in plotting ``secondary_y`` incorrectly attaches ``right_ax`` property to secondary axes specifying itself recursively. (:issue:`9861`)
364
-
365
367
- Bug in ``Series.quantile`` on empty Series of type ``Datetime`` or ``Timedelta`` (:issue:`9675`)
366
368
- Bug in ``where`` causing incorrect results when upcasting was required (:issue:`9731`)
367
369
- 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 +374,13 @@ Bug Fixes
372
374
- Bug in index equality comparisons using ``==`` failing on Index/MultiIndex type incompatibility (:issue:`9785`)
373
375
- Bug in which ``SparseDataFrame`` could not take `nan` as a column name (:issue:`8822`)
374
376
- Bug in ``to_msgpack`` and ``read_msgpack`` zlib and blosc compression support (:issue:`9783`)
375
-
376
377
- Bug ``GroupBy.size`` doesn't attach index name properly if grouped by ``TimeGrouper`` (:issue:`9925`)
377
378
- Bug causing an exception in slice assignments because ``length_of_indexer`` returns wrong results (:issue:`9995`)
378
379
- Bug in csv parser causing lines with initial whitespace plus one non-space character to be skipped. (:issue:`9710`)
379
380
- Bug in C csv parser causing spurious NaNs when data started with newline followed by whitespace. (:issue:`10022`)
380
-
381
381
- Bug causing elements with a null group to spill into the final group when grouping by a ``Categorical`` (:issue:`9603`)
382
382
- Bug where .iloc and .loc behavior is not consistent on empty dataframes (:issue:`9964`)
383
-
384
383
- Bug in invalid attribute access on a ``TimedeltaIndex`` incorrectly raised ``ValueError`` instead of ``AttributeError`` (:issue:`9680`)
385
-
386
-
387
-
388
-
389
384
- 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
385
- Bug in DataFrame ``__setitem__`` when right hand side is a dictionary (:issue:`9874`)
391
386
- Bug in ``where`` when dtype is ``datetime64/timedelta64``, but dtype of other is not (:issue:`9804`)
@@ -394,25 +389,13 @@ Bug Fixes
394
389
- Bug in ``DataFrame`` constructor when ``columns`` parameter is set, and ``data`` is an empty list (:issue:`9939`)
395
390
- Bug in bar plot with ``log=True`` raises ``TypeError`` if all values are less than 1 (:issue:`9905`)
396
391
- Bug in horizontal bar plot ignores ``log=True`` (:issue:`9905`)
397
-
398
-
399
-
400
392
- Bug in PyTables queries that did not return proper results using the index (:issue:`8265`, :issue:`9676`)
401
-
402
-
403
-
404
-
405
393
- Bug where dividing a dataframe containing values of type ``Decimal`` by another ``Decimal`` would raise. (:issue:`9787`)
406
394
- Bug where using DataFrames asfreq would remove the name of the index. (:issue:`9885`)
407
395
- Bug causing extra index point when resample BM/BQ (:issue:`9756`)
408
396
- 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
397
- Fixed latex output for multi-indexed dataframes (:issue:`9778`)
411
398
- Bug causing an exception when setting an empty range using ``DataFrame.loc`` (:issue:`9596`)
412
-
413
-
414
-
415
-
416
399
- Bug in hiding ticklabels with subplots and shared axes when adding a new plot to an existing grid of axes (:issue:`9158`)
417
400
- Bug in ``transform`` and ``filter`` when grouping on a categorical variable (:issue:`9921`)
418
401
- Bug in ``transform`` when groups are equal in number and dtype to the input index (:issue:`9700`)
0 commit comments