From c81a26e020d2e45e16cd4a987140bb23728ed7ed Mon Sep 17 00:00:00 2001 From: tp Date: Fri, 26 Jul 2019 01:26:29 +0100 Subject: [PATCH] Move to 1.0 + add issue number --- doc/source/whatsnew/v0.25.0.rst | 12 ------------ doc/source/whatsnew/v1.0.0.rst | 12 ++++++++++-- 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index 25a46a7802daea..42e756635e7396 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -272,18 +272,6 @@ is respected in indexing. (:issue:`24076`, :issue:`16785`) df['2019-01-01 12:00:00+04:00':'2019-01-01 13:00:00+04:00'] -.. _whatsnew_0250.api_breaking.MultiIndex._names: - - -``MultiIndex.levels`` do not hold level names any longer -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -A :class:`MultiIndex` previously stored the level names as attributes of each of its -:attr:`MultiIndex.levels`. From Pandas 0.25, the names are only accessed through -:attr:`MultiIndex.names` (which was also possible previously). This is done in order to -make :attr:`MultiIndex.levels` more similar to :attr:`CategoricalIndex.categories`. - - .. _whatsnew_0250.api_breaking.multi_indexing: diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index cc4bab8b9a923e..89585e01d4a7c9 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -31,12 +31,20 @@ Other enhancements .. _whatsnew_1000.api_breaking: -- -- Backwards incompatible API changes ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.. _whatsnew_1000.api_breaking.MultiIndex._names: + +``MultiIndex.levels`` do not hold level names any longer +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +- A :class:`MultiIndex` previously stored the level names as attributes of each of its + :attr:`MultiIndex.levels`. From Pandas 1.0, the names are only accessed through + :attr:`MultiIndex.names` (which was also possible previously). This is done in order to + make :attr:`MultiIndex.levels` more similar to :attr:`CategoricalIndex.categories` (:issue`27242`:). + .. _whatsnew_1000.api.other: - :class:`pandas.core.groupby.GroupBy.transform` now raises on invalid operation names (:issue:`27489`).