Skip to content

Commit caccd83

Browse files
committed
Add issue number
1 parent 4558947 commit caccd83

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

doc/source/whatsnew/v1.1.0.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ Backwards incompatible API changes
8989
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
9090
- :meth:`DataFrame.swaplevels` now raises a ``TypeError`` if the axis is not a :class:`MultiIndex`.
9191
Previously a ``AttributeError`` was raised (:issue:`31126`)
92-
- :meth:`DataFrameGroupby.mean` and :meth:`SeriesGroupby.mean` (and similarly for :meth:`~DataFrameGroupby.median`, :meth:`~DataFrameGroupby.std`` and :meth:`~DataFrameGroupby.var``)
92+
- :meth:`DataFrameGroupby.mean` and :meth:`SeriesGroupby.mean` (and similarly for :meth:`~DataFrameGroupby.median`, :meth:`~DataFrameGroupby.std` and :meth:`~DataFrameGroupby.var`)
9393
now raise a ``TypeError`` if a not-accepted keyword argument is passed into it.
94-
Previously a ``UnsupportedFunctionCall`` was raised (``AssertionError`` if ``min_count`` passed into :meth:`~DataFrameGroupby.median``) (:issue:`31485`)
94+
Previously a ``UnsupportedFunctionCall`` was raised (``AssertionError`` if ``min_count`` passed into :meth:`~DataFrameGroupby.median`) (:issue:`31485`)
9595
- :meth:`DataFrame.at` and :meth:`Series.at` will raise a ``TypeError`` instead of a ``ValueError`` if an incompatible key is passed, and ``KeyError`` if a missing key is passed, matching the behavior of ``.loc[]`` (:issue:`31722`)
9696
- Passing an integer dtype other than ``int64`` to ``np.array(period_index, dtype=...)`` will now raise ``TypeError`` instead of incorrectly using ``int64`` (:issue:`32255`)
9797
-
@@ -190,7 +190,7 @@ Performance improvements
190190
- Performance improvement in flex arithmetic ops between :class:`DataFrame` and :class:`Series` with ``axis=0`` (:issue:`31296`)
191191
- The internal index method :meth:`~Index._shallow_copy` now copies cached attributes over to the new index,
192192
avoiding creating these again on the new index. This can speed up many operations that depend on creating copies of
193-
existing indexes (:issue:`28584`)
193+
existing indexes (:issue:`28584`, :issue:`32640`)
194194

195195
.. ---------------------------------------------------------------------------
196196

pandas/core/indexes/datetimelike.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ def _set_freq(self, freq):
618618

619619
def _shallow_copy(self, values=None, name: Label = lib.no_default):
620620
name = self.name if name is lib.no_default else name
621-
cache = self._cache if values is None else {}
621+
cache = self._cache.copy() if values is None else {}
622622

623623
if values is None:
624624
values = self._data

pandas/core/indexes/interval.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ def from_tuples(
335335
@Appender(Index._shallow_copy.__doc__)
336336
def _shallow_copy(self, values=None, name: Label = lib.no_default):
337337
name = self.name if name is lib.no_default else name
338-
cache = self._cache if values is None else {}
338+
cache = self._cache.copy() if values is None else {}
339339
if values is None:
340340
values = self._data
341341

0 commit comments

Comments
 (0)