orphan: |
---|
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.
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
self
andother
are identicalself
orother
is emptyself
orother
contain values that can not be compared (aRuntimeWarning
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.
- The default has changed from
True
toFalse
, to restore the pandas 0.23.4 and earlier behavior of not sorting by default. - The behavior of
sort=True
can now be obtained withsort=None
. This will sort the result only if the values inself
andother
are not identical. - The value
sort=True
is no longer allowed. A future version of pandas will properly supportsort=True
meaning "always sort".
- Bug in :meth:`DataFrame.itertuples` with
records
orient raising anAttributeError
when theDataFrame
contained more than 255 columns (:issue:`24939`) - Bug in :meth:`DataFrame.itertuples` orient converting integer column names to strings prepended with an underscore (:issue:`24940`)
- Fixed regression in :func:`read_sql` when passing certain queries with MySQL/pymysql (:issue:`24988`).
- Fixed regression in :class:`Index.intersection` incorrectly sorting the values by default (:issue:`24959`).
- Fixed regression in :func:`merge` when merging an empty
DataFrame
with multiple timezone-aware columns on one of the timezone-aware columns (:issue:`25014`). - Fixed regression in :meth:`Series.rename_axis` and :meth:`DataFrame.rename_axis` where passing
None
failed to remove the axis name (:issue:`25034`)
Timedelta
- Bug in :func:`to_timedelta` with box=False incorrectly returning a
datetime64
object instead of atimedelta64
object (:issue:`24961`)
Reshaping
- Bug in :meth:`DataFrame.groupby` with :class:`Grouper` when there is a time change (DST) and grouping frequency is
'1d'
(:issue:`24972`)
Visualization
- Fixed the warning for implicitly registered matplotlib converters not showing. See :ref:`whatsnew_0211.converters` for more (:issue:`24963`).
Other
- Fixed AttributeError when printing a DataFrame's HTML repr after accessing the IPython config object (:issue:`25036`)
.. contributors:: v0.24.0..v0.24.1