Skip to content

Files

211 lines (156 loc) · 6.51 KB

v2.3.0.rst

File metadata and controls

211 lines (156 loc) · 6.51 KB

What's new in 2.3.0 (Month XX, 2024)

These are the changes in pandas 2.3.0. See :ref:`release` for a full changelog including other versions of pandas.

{{ header }}

Upcoming changes in pandas 3.0

Enhancements

enhancement1

Other enhancements

Notable bug fixes

These are bug fixes that might have notable behavior changes.

Comparisons between different string dtypes

In previous versions, comparing Series of different string dtypes (e.g. pd.StringDtype("pyarrow", na_value=pd.NA) against pd.StringDtype("python", na_value=np.nan)) would result in inconsistent resulting dtype or incorrectly raise. pandas will now use the hierarchy

object < (python, NaN) < (pyarrow, NaN) < (python, NA) < (pyarrow, NA)

in determining the result dtype when there are different string dtypes compared. Some examples:

  • When pd.StringDtype("pyarrow", na_value=pd.NA) is compared against any other string dtype, the result will always be boolean[pyarrow].
  • When pd.StringDtype("python", na_value=pd.NA) is compared against pd.StringDtype("pyarrow", na_value=np.nan), the result will be boolean, the NumPy-backed nullable extension array.
  • When pd.StringDtype("python", na_value=pd.NA) is compared against pd.StringDtype("python", na_value=np.nan), the result will be boolean, the NumPy-backed nullable extension array.

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 (:issue:`60797`)

Deprecations

Performance improvements

Bug fixes

Categorical

Datetimelike

Timedelta

Timezones

Numeric

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 (:issue:`60196`)

Contributors