W3cubDocs

/pandas 0.25

pandas.Index.drop

Index.drop(self, labels, errors='raise') [source]

Make new Index with passed list of labels deleted.

Parameters:
labels : array-like
errors : {‘ignore’, ‘raise’}, default ‘raise’

If ‘ignore’, suppress error and existing labels are dropped.

Returns:
dropped : Index
Raises:
KeyError

If not all of the labels are found in the selected axis

© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/0.25.0/reference/api/pandas.Index.drop.html