Skip to content

Commit 0779823

Browse files
DOC: last clean-up of whatsnew file 0.16.1
1 parent 093f6c7 commit 0779823

File tree

1 file changed

+56
-73
lines changed

1 file changed

+56
-73
lines changed

doc/source/whatsnew/v0.16.1.txt

Lines changed: 56 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -31,44 +31,6 @@ Highlights include:
3131
Enhancements
3232
~~~~~~~~~~~~
3333

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`)
49-
50-
.. ipython:: python
51-
52-
df = DataFrame(np.random.randn(3, 3), columns=['A', 'B', 'C'])
53-
df.drop(['A', 'X'], axis=1, errors='ignore')
54-
55-
- 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-
7234
.. _whatsnew_0161.enhancements.categoricalindex:
7335

7436
CategoricalIndex
@@ -244,14 +206,58 @@ enhancements make string operations easier and more consistent with standard pyt
244206

245207
- Improved ``extract`` and ``get_dummies`` methods for ``Index.str`` (:issue:`9980`)
246208

247-
.. _whatsnew_0161.api:
209+
.. _whatsnew_0161.enhancements.other:
248210

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`)
229+
230+
.. ipython:: python
231+
232+
df = DataFrame(np.random.randn(3, 3), columns=['A', 'B', 'C'])
233+
df.drop(['A', 'X'], axis=1, errors='ignore')
234+
235+
- 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`)
251254

252255

253256

257+
.. _whatsnew_0161.api:
254258

259+
API changes
260+
~~~~~~~~~~~
255261

256262
- When passing in an ax to ``df.plot( ..., ax=ax)``, the `sharex` kwarg will now default to `False`.
257263
The result is that the visibility of xlabels and xticklabels will not anymore be changed. You
@@ -260,16 +266,20 @@ API changes
260266
If pandas creates the subplots itself (e.g. no passed in `ax` kwarg), then the
261267
default is still ``sharex=True`` and the visibility changes are applied.
262268

263-
264-
265-
- Add support for separating years and quarters using dashes, for
266-
example 2014-Q1. (:issue:`9688`)
267-
268269
- :meth:`~pandas.DataFrame.assign` now inserts new columns in alphabetical order. Previously
269270
the order was arbitrary. (:issue:`9777`)
270271

271272
- 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`)
272273

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`)
280+
281+
282+
273283
.. _whatsnew_0161.index_repr:
274284

275285
Index Representation
@@ -316,12 +326,6 @@ New Behavior
316326
pd.date_range('20130101',periods=25,name='foo',tz='US/Eastern')
317327
pd.date_range('20130101',periods=104,name='foo',tz='US/Eastern')
318328

319-
.. _whatsnew_0161.deprecations:
320-
321-
Deprecations
322-
^^^^^^^^^^^^
323-
324-
- ``Series.str.split``'s ``return_type`` keyword was removed in favor of ``expand`` (:issue:`9847`)
325329

326330
.. _whatsnew_0161.performance:
327331

@@ -333,7 +337,6 @@ Performance Improvements
333337
- Improved the performance of ``pd.lib.max_len_string_array`` by 5-7x (:issue:`10024`)
334338

335339

336-
337340
.. _whatsnew_0161.bug_fixes:
338341

339342
Bug Fixes
@@ -361,7 +364,6 @@ Bug Fixes
361364
- Bug where repeated plotting of ``DataFrame`` with a ``DatetimeIndex`` may raise ``TypeError`` (:issue:`9852`)
362365
- Bug in ``setup.py`` that would allow an incompat cython version to build (:issue:`9827`)
363366
- Bug in plotting ``secondary_y`` incorrectly attaches ``right_ax`` property to secondary axes specifying itself recursively. (:issue:`9861`)
364-
365367
- Bug in ``Series.quantile`` on empty Series of type ``Datetime`` or ``Timedelta`` (:issue:`9675`)
366368
- Bug in ``where`` causing incorrect results when upcasting was required (:issue:`9731`)
367369
- 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
372374
- Bug in index equality comparisons using ``==`` failing on Index/MultiIndex type incompatibility (:issue:`9785`)
373375
- Bug in which ``SparseDataFrame`` could not take `nan` as a column name (:issue:`8822`)
374376
- Bug in ``to_msgpack`` and ``read_msgpack`` zlib and blosc compression support (:issue:`9783`)
375-
376377
- Bug ``GroupBy.size`` doesn't attach index name properly if grouped by ``TimeGrouper`` (:issue:`9925`)
377378
- Bug causing an exception in slice assignments because ``length_of_indexer`` returns wrong results (:issue:`9995`)
378379
- Bug in csv parser causing lines with initial whitespace plus one non-space character to be skipped. (:issue:`9710`)
379380
- Bug in C csv parser causing spurious NaNs when data started with newline followed by whitespace. (:issue:`10022`)
380-
381381
- Bug causing elements with a null group to spill into the final group when grouping by a ``Categorical`` (:issue:`9603`)
382382
- Bug where .iloc and .loc behavior is not consistent on empty dataframes (:issue:`9964`)
383-
384383
- Bug in invalid attribute access on a ``TimedeltaIndex`` incorrectly raised ``ValueError`` instead of ``AttributeError`` (:issue:`9680`)
385-
386-
387-
388-
389384
- 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`)
390385
- Bug in DataFrame ``__setitem__`` when right hand side is a dictionary (:issue:`9874`)
391386
- Bug in ``where`` when dtype is ``datetime64/timedelta64``, but dtype of other is not (:issue:`9804`)
@@ -394,25 +389,13 @@ Bug Fixes
394389
- Bug in ``DataFrame`` constructor when ``columns`` parameter is set, and ``data`` is an empty list (:issue:`9939`)
395390
- Bug in bar plot with ``log=True`` raises ``TypeError`` if all values are less than 1 (:issue:`9905`)
396391
- Bug in horizontal bar plot ignores ``log=True`` (:issue:`9905`)
397-
398-
399-
400392
- Bug in PyTables queries that did not return proper results using the index (:issue:`8265`, :issue:`9676`)
401-
402-
403-
404-
405393
- Bug where dividing a dataframe containing values of type ``Decimal`` by another ``Decimal`` would raise. (:issue:`9787`)
406394
- Bug where using DataFrames asfreq would remove the name of the index. (:issue:`9885`)
407395
- Bug causing extra index point when resample BM/BQ (:issue:`9756`)
408396
- 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-
410397
- Fixed latex output for multi-indexed dataframes (:issue:`9778`)
411398
- Bug causing an exception when setting an empty range using ``DataFrame.loc`` (:issue:`9596`)
412-
413-
414-
415-
416399
- Bug in hiding ticklabels with subplots and shared axes when adding a new plot to an existing grid of axes (:issue:`9158`)
417400
- Bug in ``transform`` and ``filter`` when grouping on a categorical variable (:issue:`9921`)
418401
- Bug in ``transform`` when groups are equal in number and dtype to the input index (:issue:`9700`)

0 commit comments

Comments
 (0)