From bcb935775a4b81d337a6b842f43f4f79fa3d1f1a Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Mon, 7 Jul 2025 11:02:32 +0200 Subject: [PATCH 1/4] DOC: prepare 2.3.1 whatsnew notes for release --- doc/source/whatsnew/v2.3.0.rst | 2 +- doc/source/whatsnew/v2.3.1.rst | 23 +++-------------------- 2 files changed, 4 insertions(+), 21 deletions(-) diff --git a/doc/source/whatsnew/v2.3.0.rst b/doc/source/whatsnew/v2.3.0.rst index 8ca6c0006a604..8199662f52b5f 100644 --- a/doc/source/whatsnew/v2.3.0.rst +++ b/doc/source/whatsnew/v2.3.0.rst @@ -78,4 +78,4 @@ Other Contributors ~~~~~~~~~~~~ -.. contributors:: v2.2.3..v2.3.0|HEAD +.. contributors:: v2.2.3..v2.3.0 diff --git a/doc/source/whatsnew/v2.3.1.rst b/doc/source/whatsnew/v2.3.1.rst index eb3ad72f6a59f..944366a98f101 100644 --- a/doc/source/whatsnew/v2.3.1.rst +++ b/doc/source/whatsnew/v2.3.1.rst @@ -1,6 +1,6 @@ .. _whatsnew_231: -What's new in 2.3.1 (Month XX, 2025) +What's new in 2.3.1 (July 7, 2025) ------------------------------------ These are the changes in pandas 2.3.1. See :ref:`release` for a full changelog @@ -62,27 +62,10 @@ Bug fixes - Fixed bug in unpickling objects pickled in pandas versions pre-2.3.0 that used :class:`StringDtype` (:issue:`61763`). -.. _whatsnew_231.regressions: - -Fixed regressions -~~~~~~~~~~~~~~~~~ -- - -.. --------------------------------------------------------------------------- -.. _whatsnew_231.bug_fixes: - -Bug fixes -~~~~~~~~~ - -.. --------------------------------------------------------------------------- -.. _whatsnew_231.other: - -Other -~~~~~ -- - .. --------------------------------------------------------------------------- .. _whatsnew_231.contributors: Contributors ~~~~~~~~~~~~ + +.. contributors:: v2.3.0..v2.3.1|HEAD From 6902efaec9f81b6329cbeb80b6ff2df498287cec Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Mon, 7 Jul 2025 11:53:25 +0200 Subject: [PATCH 2/4] mode -> future --- doc/source/whatsnew/v2.3.1.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/whatsnew/v2.3.1.rst b/doc/source/whatsnew/v2.3.1.rst index 944366a98f101..f9a7ad3cef7db 100644 --- a/doc/source/whatsnew/v2.3.1.rst +++ b/doc/source/whatsnew/v2.3.1.rst @@ -44,7 +44,7 @@ correctly, rather than defaulting to ``object`` dtype. For example: .. code-block:: python - >>> pd.options.mode.infer_string = True + >>> pd.options.future.infer_string = True >>> df = pd.DataFrame() >>> df.columns.dtype dtype('int64') # default RangeIndex for empty columns From 15c7bfa6f87002da12409a2719d05d187e28b9e5 Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Mon, 7 Jul 2025 14:31:56 +0200 Subject: [PATCH 3/4] update --- doc/source/whatsnew/v2.3.1.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/source/whatsnew/v2.3.1.rst b/doc/source/whatsnew/v2.3.1.rst index f9a7ad3cef7db..7779f4cf78bb4 100644 --- a/doc/source/whatsnew/v2.3.1.rst +++ b/doc/source/whatsnew/v2.3.1.rst @@ -14,6 +14,10 @@ including other versions of pandas. Improvements and fixes for the StringDtype ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Most changes in this release are related to :class:`StringDtype` which will +become the default string dtype in pandas 3.0. See +:ref:`whatsnew_230.upcoming_changes` for more details. + .. _whatsnew_231.string_fixes.string_comparisons: Comparisons between different string dtypes @@ -59,7 +63,7 @@ Bug fixes - 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`) - 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`) - Fixed bug in :meth:`DataFrame.explode` and :meth:`Series.explode` where methods would fail with ``dtype="str"`` (:issue:`61623`) -- Fixed bug in unpickling objects pickled in pandas versions pre-2.3.0 that used :class:`StringDtype` (:issue:`61763`). +- Fixed bug in unpickling objects pickled in pandas versions pre-2.3.0 that used :class:`StringDtype` (:issue:`61763`) .. --------------------------------------------------------------------------- From d951581d1570ffe7f7234fea0f2603025838da93 Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Mon, 7 Jul 2025 15:36:56 +0200 Subject: [PATCH 4/4] add issue number --- doc/source/whatsnew/v2.3.1.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/whatsnew/v2.3.1.rst b/doc/source/whatsnew/v2.3.1.rst index 7779f4cf78bb4..9abc573b266aa 100644 --- a/doc/source/whatsnew/v2.3.1.rst +++ b/doc/source/whatsnew/v2.3.1.rst @@ -23,7 +23,7 @@ become the default string dtype in pandas 3.0. See Comparisons between different string dtypes ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -In previous versions, comparing :class:`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 +In previous versions, comparing :class:`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 (:issue:`60639`). pandas will now use the hierarchy object < (python, NaN) < (pyarrow, NaN) < (python, NA) < (pyarrow, NA)