W3cubDocs

/pandas 0.18

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

In most cases, there should be no functional difference from using deep, but if deep is passed it will attempt to deepcopy. This could be potentially expensive on large MultiIndex objects.

© 2011–2012 Lambda Foundry, Inc. and PyData Development Team
© 2008–2011 AQR Capital Management, LLC
© 2008–2014 the pandas development team
Licensed under the 3-clause BSD License.
http://pandas.pydata.org/pandas-docs/version/0.18.1/generated/pandas.MultiIndex.copy.html