MultiIndex.
drop
Make new MultiIndex with passed list of labels deleted
Must be a list of tuples
Examples
>>> index = ps.MultiIndex.from_tuples([('a', 'x'), ('b', 'y'), ('c', 'z')]) >>> index MultiIndex([('a', 'x'), ('b', 'y'), ('c', 'z')], )
>>> index.drop(['a']) MultiIndex([('b', 'y'), ('c', 'z')], )
>>> index.drop(['x', 'y'], level=1) MultiIndex([('c', 'z')], )