- 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 install.dropping-27
for more.
{{ header }}
These are the changes in pandas 0.24.1. See release
for a full changelog including other versions of pandas. See whatsnew_0240
for the 0.24.0 changelog.
The default sort
value for Index.union
has changed from True
to None
(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 Index.difference
and Index.symmetric_difference
, which would not sort the result when the values could not be compared.
The sort option for 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".
- Fixed regression in
DataFrame.to_dict
withrecords
orient raising anAttributeError
when theDataFrame
contained more than 255 columns, or wrongly converting column names that were not valid python identifiers (24939
,24940
). - Fixed regression in
read_sql
when passing certain queries with MySQL/pymysql (24988
). - Fixed regression in
Index.intersection
incorrectly sorting the values by default (24959
). - Fixed regression in
merge
when merging an emptyDataFrame
with multiple timezone-aware columns on one of the timezone-aware columns (25014
). - Fixed regression in
Series.rename_axis
andDataFrame.rename_axis
where passingNone
failed to remove the axis name (25034
) - Fixed regression in
to_timedelta
with box=False incorrectly returning adatetime64
object instead of atimedelta64
object (24961
)
Reshaping
- Bug in
DataFrame.groupby
withGrouper
when there is a time change (DST) and grouping frequency is'1d'
(24972
)
Visualization
- Fixed the warning for implicitly registered matplotlib converters not showing. See
whatsnew_0211.converters
for more (24963
).
Other
- Fixed AttributeError when printing a DataFrame's HTML repr after accessing the IPython config object (
25036
)
v0.24.0..v0.24.1