xorbits.pandas.Index.copy#

Index.copy()#

Make a copy of this object.

Name and dtype sets those attributes on the new object.

Parameters
  • name (Label, optional (Not supported yet)) – Set name for new object.

  • deep (bool, default False (Not supported yet)) –

  • dtype (numpy dtype or pandas type, optional (Not supported yet)) –

    Set dtype for new object.

    Deprecated since version 1.2.0: use astype method instead.

  • names (list-like, optional (Not supported yet)) –

    Kept for compatibility with MultiIndex. Should not be used.

    Deprecated since version 1.4.0: use name instead.

Returns

Index refer to new object which is a copy of this object.

Return type

Index

Notes

In most cases, there should be no functional difference from using deep, but if deep is passed it will attempt to deepcopy.

This docstring was copied from pandas.core.indexes.base.Index.