From 75f1a2879739d50ea2ac28ce8de607e0c8a21044 Mon Sep 17 00:00:00 2001 From: Matthew Roeschke Date: Mon, 1 Aug 2022 15:02:51 -0700 Subject: [PATCH 1/3] DOC: Add pandas-stubs and potential 2.0 API breaks to 1.5 whatsnew --- doc/source/whatsnew/v1.5.0.rst | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index b5a6cf50fcb6a..3a239b824adbe 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -245,6 +245,14 @@ and attributes without holding entire tree in memory (:issue:`45442`). .. _`lxml's iterparse`: https://lxml.de/3.2/parsing.html#iterparse-and-iterwalk .. _`etree's iterparse`: https://docs.python.org/3/library/xml.etree.elementtree.html#xml.etree.ElementTree.iterparse +.. _whatsnew_150.enhancements.pandas-stubs: + +``pandas-stubs`` +^^^^^^^^^^^^^^^^ + +The ``pandas-stubs`` library is now supported by the pandas development team, providing type stubs for the pandas API. Please visit +https://github.com/pandas-dev/pandas-stubs for more information. + .. _whatsnew_150.enhancements.other: Other enhancements @@ -499,6 +507,14 @@ Other API changes Deprecations ~~~~~~~~~~~~ +.. warning:: + + In the next major release, 2.0, several larger API changes are being considered without a formal deprecation such as + making the standard library ``zoneinfo.ZoneInfo`` the default timezone instead of ``pytz``, having one :class:`Index` + support all data types instead of having multiple subclasses (:class:`CategoricalIndex`, :class:`Int64Index`, etc.), and more. + The changes under consideration are logged in `this Github issue `_, and any + feedback or concerns are welcome. + .. _whatsnew_150.deprecations.int_slicing_series: Label-based integer slicing on a Series with an Int64Index or RangeIndex From 98f3ea3ef068dfe595bd60c7c4e36cf8a452f05f Mon Sep 17 00:00:00 2001 From: Matthew Roeschke Date: Mon, 1 Aug 2022 15:05:20 -0700 Subject: [PATCH 2/3] Add link to zoneinfo --- doc/source/whatsnew/v1.5.0.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 3a239b824adbe..5d2a3b580dffe 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -510,8 +510,8 @@ Deprecations .. warning:: In the next major release, 2.0, several larger API changes are being considered without a formal deprecation such as - making the standard library ``zoneinfo.ZoneInfo`` the default timezone instead of ``pytz``, having one :class:`Index` - support all data types instead of having multiple subclasses (:class:`CategoricalIndex`, :class:`Int64Index`, etc.), and more. + making the standard library `zoneinfo `_ the default timezone implementation instead of ``pytz``, + having the :class:`Index` support all data types instead of having multiple subclasses (:class:`CategoricalIndex`, :class:`Int64Index`, etc.), and more. The changes under consideration are logged in `this Github issue `_, and any feedback or concerns are welcome. From 842b6ec133391d284c4ff397c8b0db94690b05be Mon Sep 17 00:00:00 2001 From: Matthew Roeschke Date: Mon, 8 Aug 2022 21:34:58 -0700 Subject: [PATCH 3/3] Address comments --- doc/source/whatsnew/v1.5.0.rst | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 8156d357db02a..2576545e538c4 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -14,6 +14,16 @@ including other versions of pandas. Enhancements ~~~~~~~~~~~~ +.. _whatsnew_150.enhancements.pandas-stubs: + +``pandas-stubs`` +^^^^^^^^^^^^^^^^ + +The ``pandas-stubs`` library is now supported by the pandas development team, providing type stubs for the pandas API. Please visit +https://github.com/pandas-dev/pandas-stubs for more information. + +We thank VirtusLab and Microsoft for their initial, significant contributions to ``pandas-stubs`` + .. _whatsnew_150.enhancements.dataframe_interchange: DataFrame interchange protocol implementation @@ -248,14 +258,6 @@ and attributes without holding entire tree in memory (:issue:`45442`). .. _`lxml's iterparse`: https://lxml.de/3.2/parsing.html#iterparse-and-iterwalk .. _`etree's iterparse`: https://docs.python.org/3/library/xml.etree.elementtree.html#xml.etree.ElementTree.iterparse -.. _whatsnew_150.enhancements.pandas-stubs: - -``pandas-stubs`` -^^^^^^^^^^^^^^^^ - -The ``pandas-stubs`` library is now supported by the pandas development team, providing type stubs for the pandas API. Please visit -https://github.com/pandas-dev/pandas-stubs for more information. - .. _whatsnew_150.enhancements.other: Other enhancements @@ -554,7 +556,7 @@ Deprecations .. warning:: - In the next major release, 2.0, several larger API changes are being considered without a formal deprecation such as + In the next major version release, 2.0, several larger API changes are being considered without a formal deprecation such as making the standard library `zoneinfo `_ the default timezone implementation instead of ``pytz``, having the :class:`Index` support all data types instead of having multiple subclasses (:class:`CategoricalIndex`, :class:`Int64Index`, etc.), and more. The changes under consideration are logged in `this Github issue `_, and any