What’s new in 2.3.0 (Month XX, 2024)#
These are the changes in pandas 2.3.0. See Release notes for a full changelog including other versions of pandas.
Upcoming changes in pandas 3.0#
Enhancements#
enhancement1#
Other enhancements#
Notable bug fixes#
These are bug fixes that might have notable behavior changes.
notable_bug_fix1#
Deprecations#
Deprecated allowing non-
bool
values forna
instr.contains()
,str.startswith()
, andstr.endswith()
for dtypes that do not already disallow these (GH 59615)Deprecated the
"pyarrow_numpy"
storage option forStringDtype
(GH 60152)
Performance improvements#
Bug fixes#
Categorical#
Datetimelike#
Timedelta#
Timezones#
Numeric#
Conversion#
Strings#
Bug in
Series.rank()
forStringDtype
withstorage="pyarrow"
incorrectly returning integer results in case ofmethod="average"
and raising an error if it would truncate results (GH 59768)Bug in
Series.replace()
withStringDtype
when replacing with a non-string value was not upcasting toobject
dtype (GH 60282)Bug in
Series.str.replace()
whenn < 0
forStringDtype
withstorage="pyarrow"
(GH 59628)Bug in
ser.str.slice
with negativestep
withArrowDtype
andStringDtype
withstorage="pyarrow"
giving incorrect results (GH 59710)Bug in the
center
method onSeries
andIndex
objectstr
accessors with pyarrow-backed dtype not matching the python behavior in corner cases with an odd number of fill characters (GH 54792)
Interval#
Indexing#
Fixed bug in
Index.get_indexer()
round-tripping through string dtype wheninfer_string
is enabled (GH 55834)
Missing#
MultiIndex#
I/O#
DataFrame.to_excel()
was storing decimals as strings instead of numbers (GH 49598)
Period#
Plotting#
Groupby/resample/rolling#
Reshaping#
Sparse#
ExtensionArray#
Styler#
Other#
Fixed usage of
inspect
when the optional dependenciespyarrow
orjinja2
are not installed (GH 60196)