Skip to content

Latest commit

 

History

History
123 lines (78 loc) · 5.06 KB

v0.23.2.rst

File metadata and controls

123 lines (78 loc) · 5.06 KB

What's New in 0.23.2 (July 5, 2018)

{{ header }}

This is a minor bug-fix release in the 0.23.x series and includes some small regression fixes and bug fixes. We recommend that all users upgrade to this version.

Note

Pandas 0.23.2 is first pandas release that's compatible with Python 3.7 (:issue:`20552`)

Warning

Starting January 1, 2019, pandas feature releases will support Python 3 only. See :ref:`install.dropping-27` for more.

Logical Reductions over Entire DataFrame

:meth:`DataFrame.all` and :meth:`DataFrame.any` now accept axis=None to reduce over all axes to a scalar (:issue:`19976`)

.. ipython:: python

   df = pd.DataFrame({"A": [1, 2], "B": [True, False]})
   df.all(axis=None)

This also provides compatibility with NumPy 1.15, which now dispatches to DataFrame.all. With NumPy 1.15 and pandas 0.23.1 or earlier, :func:`numpy.all` will no longer reduce over every axis:

>>> # NumPy 1.15, pandas 0.23.1
>>> np.any(pd.DataFrame({"A": [False], "B": [False]}))
A    False
B    False
dtype: bool

With pandas 0.23.2, that will correctly return False, as it did with NumPy < 1.15.

.. ipython:: python

   np.any(pd.DataFrame({"A": [False], "B": [False]}))

Fixed Regressions

Build Changes

  • The source and binary distributions no longer include test data files, resulting in smaller download sizes. Tests relying on these data files will be skipped when using pandas.test(). (:issue:`19320`)

Bug Fixes

Conversion

Indexing

I/O

Categorical

Timezones

Timedelta

Contributors

.. contributors:: v0.23.1..v0.23.2