Whats new in 0.24.1 (February 3, 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 Plan for dropping Python 2.7open in new window for more.

These are the changes in pandas 0.24.1. See Release Notes for a full changelog including other versions of pandas. See What’s new in 0.24.0 (January 25, 2019) for the 0.24.0 changelog.

API changes

Changing the sort parameter for Index set operations

The default sort value for Index.union()open in new window has changed from True to None (GH24959open in new window). 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 Index.difference()open in new window and Index.symmetric_difference()open in new window, which would not sort the result when the values could not be compared.

The sort option for Index.intersection()open in new window 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

Bug fixes

Reshaping

Visualization

Other

  • Fixed AttributeError when printing a DataFrame’s HTML repr after accessing the IPython config object (GH25036open in new window)

Contributors

A total of 7 people contributed patches to this release. People with a “+” by their names contributed a patch for the first time.

  • Alex Buchkovsky
  • Roman Yurchak
  • h-vetinari
  • jbrockmendel
  • Jeremy Schendel
  • Joris Van den Bossche
  • Tom Augspurger