Skip to content

Commit 3b88b4f

Browse files
committed
change type of name to Label
1 parent 177743a commit 3b88b4f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pandas/core/indexes/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -830,7 +830,7 @@ def copy(self, name=None, deep=False, dtype=None, names=None):
830830
831831
Parameters
832832
----------
833-
name : Optional[Hashable]
833+
name : Label
834834
deep : bool, default False
835835
dtype : numpy dtype or pandas type, optional
836836
names : list-like, optional

pandas/core/indexes/multi.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1014,7 +1014,7 @@ def copy(
10141014
levels : sequence, optional
10151015
codes : sequence, optional
10161016
deep : bool, default False
1017-
name : Optional[Hashable]
1017+
name : Label
10181018
Kept for compatibility with 1-dimensional Index. Should not be used.
10191019
10201020
Returns

0 commit comments

Comments
 (0)