Skip to content

Latest commit

 

History

History
82 lines (52 loc) · 3.32 KB

v0.24.1.rst

File metadata and controls

82 lines (52 loc) · 3.32 KB
orphan:

Whats New in 0.24.1 (February XX, 2019)

Warning

The 0.24.x series of releases will be the last to support Python 2. Future feature releases will support Python 3 only. See :ref:`install.dropping-27` for more.

{{ header }}

These are the changes in pandas 0.24.1. See :ref:`release` for a full changelog including other versions of pandas. See :ref:`whatsnew_0240` for the 0.24.0 changelog.

API Changes

Changing the sort parameter for :class:`Index` set operations

The default sort value for :meth:`Index.union` has changed from True to None (:issue:`24959`). The default behavior, however, remains the same: the result is sorted, unless

  1. self and other are identical
  2. self or other is empty
  3. self or other contain values that can not be compared (a RuntimeWarning is raised).

This change will allow sort=True to mean "always sort" in a future release.

The same change applies to :meth:`Index.difference` and :meth:`Index.symmetric_difference`, which would not sort the result when the values could not be compared.

The sort option for :meth:`Index.intersection` has changed in three ways.

  1. The default has changed from True to False, to restore the pandas 0.23.4 and earlier behavior of not sorting by default.
  2. The behavior of sort=True can now be obtained with sort=None. This will sort the result only if the values in self and other are not identical.
  3. The value sort=True is no longer allowed. A future version of pandas will properly support sort=True meaning "always sort".

Fixed Regressions

Timedelta

Reshaping

Visualization

Other

  • Fixed AttributeError when printing a DataFrame's HTML repr after accessing the IPython config object (:issue:`25036`)

Contributors

.. contributors:: v0.24.0..v0.24.1