pandas.MultiIndex.drop#

MultiIndex.drop(codes, level=None, errors='raise')[source]#

Make new MultiIndex with passed list of codes deleted.

Parameters
codesarray-like

Must be a list of tuples when level is not specified.

levelint or level name, default None
errorsstr, default ‘raise’
Returns
MultiIndex