Skip to content

Commit 3fbbd94

Browse files
committed
Add explanatory comment and whatsnew entry.
1 parent 2331ffd commit 3fbbd94

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

doc/source/whatsnew/v2.3.1.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ Bug fixes
5959
- Bug in :meth:`.DataFrameGroupBy.min`, :meth:`.DataFrameGroupBy.max`, :meth:`.Resampler.min`, :meth:`.Resampler.max` where all NA values of string dtype would return float instead of string dtype (:issue:`60810`)
6060
- Bug in :meth:`DataFrame.sum` with ``axis=1``, :meth:`.DataFrameGroupBy.sum` or :meth:`.SeriesGroupBy.sum` with ``skipna=True``, and :meth:`.Resampler.sum` with all NA values of :class:`StringDtype` resulted in ``0`` instead of the empty string ``""`` (:issue:`60229`)
6161
- Fixed bug in :meth:`DataFrame.explode` and :meth:`Series.explode` where methods would fail with ``dtype="str"`` (:issue:`61623`)
62+
- Fixed bug in unpickling objects pickled in pandas versions pre-2.3.0 that used :class:`StringDtype` (:issue:`61763`).
6263

6364

6465
.. _whatsnew_231.regressions:
@@ -72,7 +73,6 @@ Fixed regressions
7273

7374
Bug fixes
7475
~~~~~~~~~
75-
-
7676

7777
.. ---------------------------------------------------------------------------
7878
.. _whatsnew_231.other:

pandas/core/arrays/string_.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ def __eq__(self, other: object) -> bool:
221221
return False
222222

223223
def __setstate__(self, state: MutableMapping[str, Any]) -> None:
224+
# back-compat for pandas < 2.3, where na_value did not yet exist
224225
self.storage = state.pop("storage", "python")
225226
self._na_value = state.pop("_na_value", libmissing.NA)
226227

0 commit comments

Comments
 (0)