These are the changes in pandas 2.3.0. See :ref:`release` for a full changelog including other versions of pandas.
{{ header }}
These are bug fixes that might have notable behavior changes.
- Deprecated allowing non-
bool
values forna
in :meth:`.str.contains`, :meth:`.str.startswith`, and :meth:`.str.endswith` for dtypes that do not already disallow these (:issue:`59615`) - Deprecated the
"pyarrow_numpy"
storage option for :class:`StringDtype` (:issue:`60152`)
- Bug in :meth:`Series.rank` for :class:`StringDtype` with
storage="pyarrow"
incorrectly returning integer results in case ofmethod="average"
and raising an error if it would truncate results (:issue:`59768`) - Bug in :meth:`Series.str.replace` when
n < 0
for :class:`StringDtype` withstorage="pyarrow"
(:issue:`59628`) - Bug in
ser.str.slice
with negativestep
with :class:`ArrowDtype` and :class:`StringDtype` withstorage="pyarrow"
giving incorrect results (:issue:`59710`) - Bug in the
center
method on :class:`Series` and :class:`Index` objectstr
accessors with pyarrow-backed dtype not matching the python behavior in corner cases with an odd number of fill characters (:issue:`54792`)