diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst index 6c14a2e784236..352c7ec745067 100644 --- a/doc/source/whatsnew/index.rst +++ b/doc/source/whatsnew/index.rst @@ -10,13 +10,13 @@ This is the list of changes to pandas between each release. For full details, see the `commit logs `_. For install and upgrade instructions, see :ref:`install`. -Version 1.6 +Version 2.0 ----------- .. toctree:: :maxdepth: 2 - v1.6.0 + v2.0.0 Version 1.5 ----------- diff --git a/doc/source/whatsnew/v1.6.0.rst b/doc/source/whatsnew/v2.0.0.rst similarity index 95% rename from doc/source/whatsnew/v1.6.0.rst rename to doc/source/whatsnew/v2.0.0.rst index a2c77715aa46d..9d1e0c7485092 100644 --- a/doc/source/whatsnew/v1.6.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -1,30 +1,30 @@ -.. _whatsnew_160: +.. _whatsnew_200: -What's new in 1.6.0 (??) +What's new in 2.0.0 (??) ------------------------ -These are the changes in pandas 1.6.0. See :ref:`release` for a full changelog +These are the changes in pandas 2.0.0. See :ref:`release` for a full changelog including other versions of pandas. {{ header }} .. --------------------------------------------------------------------------- -.. _whatsnew_160.enhancements: +.. _whatsnew_200.enhancements: Enhancements ~~~~~~~~~~~~ -.. _whatsnew_160.enhancements.enhancement1: +.. _whatsnew_200.enhancements.enhancement1: enhancement1 ^^^^^^^^^^^^ -.. _whatsnew_160.enhancements.enhancement2: +.. _whatsnew_200.enhancements.enhancement2: enhancement2 ^^^^^^^^^^^^ -.. _whatsnew_160.enhancements.other: +.. _whatsnew_200.enhancements.other: Other enhancements ^^^^^^^^^^^^^^^^^^ @@ -39,14 +39,14 @@ Other enhancements - .. --------------------------------------------------------------------------- -.. _whatsnew_160.notable_bug_fixes: +.. _whatsnew_200.notable_bug_fixes: Notable bug fixes ~~~~~~~~~~~~~~~~~ These are bug fixes that might have notable behavior changes. -.. _whatsnew_160.notable_bug_fixes.notable_bug_fix1: +.. _whatsnew_200.notable_bug_fixes.notable_bug_fix1: :meth:`.GroupBy.cumsum` and :meth:`.GroupBy.cumprod` overflow instead of lossy casting to float ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -76,18 +76,18 @@ We return incorrect results with the 6th value. We overflow with the 7th value, but the 6th value is still correct. -.. _whatsnew_160.notable_bug_fixes.notable_bug_fix2: +.. _whatsnew_200.notable_bug_fixes.notable_bug_fix2: notable_bug_fix2 ^^^^^^^^^^^^^^^^ .. --------------------------------------------------------------------------- -.. _whatsnew_160.api_breaking: +.. _whatsnew_200.api_breaking: Backwards incompatible API changes ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.. _whatsnew_160.api_breaking.deps: +.. _whatsnew_200.api_breaking.deps: Increased minimum versions for dependencies ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -112,7 +112,7 @@ Optional libraries below the lowest tested version may still work, but are not c See :ref:`install.dependencies` and :ref:`install.optional_dependencies` for more. -.. _whatsnew_160.api_breaking.other: +.. _whatsnew_200.api_breaking.other: Other API changes ^^^^^^^^^^^^^^^^^ @@ -125,7 +125,7 @@ Other API changes - .. --------------------------------------------------------------------------- -.. _whatsnew_160.deprecations: +.. _whatsnew_200.deprecations: Deprecations ~~~~~~~~~~~~ @@ -133,7 +133,7 @@ Deprecations - .. --------------------------------------------------------------------------- -.. _whatsnew_160.performance: +.. _whatsnew_200.performance: Performance improvements ~~~~~~~~~~~~~~~~~~~~~~~~ @@ -160,7 +160,7 @@ Performance improvements - Performance improvement in :class:`DataFrameGroupBy` and :class:`SeriesGroupBy` when ``by`` is a categorical type and ``sort=False`` (:issue:`48976`) .. --------------------------------------------------------------------------- -.. _whatsnew_160.bug_fixes: +.. _whatsnew_200.bug_fixes: Bug fixes ~~~~~~~~~ @@ -297,7 +297,7 @@ Other - .. --------------------------------------------------------------------------- -.. _whatsnew_160.contributors: +.. _whatsnew_200.contributors: Contributors ~~~~~~~~~~~~ diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 3149cbb87c16e..ce828ba4a0af4 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -4650,7 +4650,7 @@ def add_prefix(self: NDFrameT, prefix: str, axis: Axis | None = None) -> NDFrame axis : {{0 or 'index', 1 or 'columns', None}}, default None Axis to add prefix on - .. versionadded:: 1.6.0 + .. versionadded:: 2.0.0 Returns ------- @@ -4724,7 +4724,7 @@ def add_suffix(self: NDFrameT, suffix: str, axis: Axis | None = None) -> NDFrame axis : {{0 or 'index', 1 or 'columns', None}}, default None Axis to add suffix on - .. versionadded:: 1.6.0 + .. versionadded:: 2.0.0 Returns ------- diff --git a/pandas/tests/series/methods/test_isin.py b/pandas/tests/series/methods/test_isin.py index 0eca3e0512849..449724508fcaa 100644 --- a/pandas/tests/series/methods/test_isin.py +++ b/pandas/tests/series/methods/test_isin.py @@ -57,10 +57,6 @@ def test_isin_datetimelike_mismatched_reso(self): result = ser.isin(dta) tm.assert_series_equal(result, expected) - @pytest.mark.xfail( - reason="DTA._from_sequence incorrectly treats Timestamp[s].value as " - "nanoseconds." - ) def test_isin_datetimelike_mismatched_reso_list(self): expected = Series([True, True, False, False, False])