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#

  • The semantics for the copy keyword in __array__ methods (i.e. called when using np.array() or np.asarray() on pandas objects) has been updated to work correctly with NumPy >= 2 (GH 57739)

  • Series.str.decode() result now has StringDtype when future.infer_string is True (GH 60709)

  • to_hdf() and to_hdf() now round-trip with StringDtype (GH 60663)

  • The cumsum(), cummin(), and cummax() reductions are now implemented for StringDtype columns when backed by PyArrow (GH 60633)

  • The sum() reduction is now implemented for StringDtype columns (GH 59853)

Notable bug fixes#

These are bug fixes that might have notable behavior changes.

notable_bug_fix1#

API changes#

  • When enabling the future.infer_string option: Index set operations (like union or intersection) will now ignore the dtype of an empty RangeIndex or empty Index with object dtype when determining the dtype of the resulting Index (GH 60797)

Deprecations#

Performance improvements#

Bug fixes#

Categorical#

Datetimelike#

Timedelta#

Timezones#

Numeric#

  • Enabled Series.mode and DataFrame.mode with dropna=False to sort the result for all dtypes in the presence of NA values; previously only certain dtypes would sort (GH 60702)

Conversion#

Strings#

Interval#

Indexing#

Missing#

MultiIndex#

I/O#

Period#

Plotting#

Groupby/resample/rolling#

Reshaping#

Sparse#

ExtensionArray#

Styler#

Other#

  • Fixed usage of inspect when the optional dependencies pyarrow or jinja2 are not installed (GH 60196)

Contributors#