A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://pandas.pydata.org/docs/dev/development/../reference/api/pandas.Index.drop.html below:

pandas.Index.drop — pandas 3.0.0.dev0+2231.g4f2aa4d2be documentation

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

Make new Index with passed list of labels deleted.

Parameters:
labelsarray-like or scalar

Array-like object or a scalar value, representing the labels to be removed from the Index.

errors{‘ignore’, ‘raise’}, default ‘raise’

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

Returns:
Index

Will be same type as self, except for RangeIndex.

Raises:
KeyError

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

Examples

>>> idx = pd.Index(["a", "b", "c"])
>>> idx.drop(["a"])
Index(['b', 'c'], dtype='object')

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4