diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 3d549405592d6..e8d65fbf11128 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -825,20 +825,24 @@ def repeat(self, repeats, axis=None): def copy(self, name=None, deep=False, dtype=None, names=None): """ - Make a copy of this object. Name and dtype sets those attributes on - the new object. + Make a copy of this object. + + Name and dtype sets those attributes on the new object. Parameters ---------- - name : Label + name : Label, optional + Set name for new object. deep : bool, default False dtype : numpy dtype or pandas type, optional + Set dtype for new object. names : list-like, optional Kept for compatibility with MultiIndex. Should not be used. Returns ------- Index + Index refer to new object which is a copy of this object. Notes -----