MultiIndex.set_labels()
pandas.MultiIndex.set_labels
-
MultiIndex.set_labels(labels, level=None, inplace=False, verify_integrity=True)
-
Set new labels on MultiIndex. Defaults to returning new index.
Parameters: labels : sequence or list of sequence
new labels to apply
level : int, level name, or sequence of int/level names (default None)
level(s) to set (None for all levels)
inplace : bool
if True, mutates in place
verify_integrity : bool (default True)
if True, checks that levels and labels are compatible