MultiIndex.copy()

pandas.MultiIndex.copy

MultiIndex.copy(names=None, dtype=None, levels=None, labels=None, deep=False, _set_identity=False)

Make a copy of this object. Names, dtype, levels and labels can be passed and will be set on new copy.

Parameters:

names : sequence, optional

dtype : numpy dtype or pandas type, optional

levels : sequence, optional

labels : sequence, optional

Returns:

copy : MultiIndex

Notes