Skip to content

Commit 30be34a

Browse files
add description for bugfix in whatsnew and missing type hints in datetimelike _shallow_copy
1 parent 7b4fd2c commit 30be34a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

doc/source/whatsnew/v3.0.0.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ Missing
412412
MultiIndex
413413
^^^^^^^^^^
414414
- :func:`DataFrame.loc` with ``axis=0`` and :class:`MultiIndex` when setting a value adds extra columns (:issue:`58116`)
415-
-
415+
- :func:`MultiIndex.get_level_values` accessing a :class:`DatetimeIndex` does not carry the frequency attribute along (:issue:`58327`, :issue:`57949`)
416416

417417
I/O
418418
^^^

pandas/core/indexes/datetimelike.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -846,9 +846,9 @@ def take(
846846
@doc(Index._shallow_copy)
847847
def _shallow_copy( # type: ignore[override]
848848
self,
849-
values,
849+
values: np.ndarray,
850850
name: Hashable = no_default,
851-
level_codes=no_default,
851+
level_codes: np.ndarray = no_default,
852852
) -> Self:
853853
name = self._name if name is no_default else name
854854
result = self._simple_new(values, name=name, refs=self._references)

0 commit comments

Comments
 (0)