pandas.MultiIndex.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
MultiIndex.copy(names=None, deep=False, name=None)Run the example
Edit the example and select Run Python to see the result.
Parameters
| Parameter | Requirement | Accepted values and behavior |
|---|---|---|
names |
Optional Positional or keyword Default None |
sequence Supply explicit names for labels, fields, or levels. |
deep |
Optional Positional or keyword Default False |
bool Choose whether to include or copy underlying object data where supported. |
name |
Optional Positional or keyword Default None |
Label Set a name or identify the named object used by the operation. |
Returns
MultiIndex