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.
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 to preserve 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 do not sort the result when the values could not be compared.
For :meth:`Index.intersection` the option of sort=True
is also renamed
to sort=None
(but for :meth:`Index.intersection` it is not the default), as
the result is not sorted when self
and other
were identical.
- 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 :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`).
Conversion
Indexing
I/O
Categorical
Timezones
Timedelta
- Bug in :func:`to_timedelta` with box=False incorrectly returning a datetime64
object instead of a timedelta64
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
.. contributors:: v0.24.0..v0.24.1