pandas.Index.copy
pandas 3.1.1 · Index objects · method
Make a copy of the receiver. For an HDFStore, copy stored data to a different file.
Call syntax
Index.copy(name=None, deep=False)Run the example
Edit the example and select Run Python to see the result.
Parameters
| Parameter | Requirement | Accepted values and behavior |
|---|---|---|
name |
Optional Positional or keyword Default None |
Label Set a name or identify the named object used by the operation. |
deep |
Optional Positional or keyword Default False |
bool Choose whether to include or copy underlying object data where supported. |
Returns
Index