A RetroSearch Logo

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

Search Query:

Showing content from https://pandas.pydata.org/pandas-docs/stable/reference/api/../api/pandas.Index.delete.html below:

pandas.Index.delete — pandas 2.3.1 documentation

pandas.Index.delete#
Index.delete(loc)[source]#

Make new Index with passed location(-s) deleted.

Parameters:
locint or list of int

Location of item(-s) which will be deleted. Use a list of locations to delete more than one value at the same time.

Returns:
Index

Will be same type as self, except for RangeIndex.

See also

numpy.delete

Delete any rows and column from NumPy array (ndarray).

Examples

>>> idx = pd.Index(['a', 'b', 'c'])
>>> idx.delete(1)
Index(['a', 'c'], dtype='object')
>>> idx = pd.Index(['a', 'b', 'c'])
>>> idx.delete([0, 2])
Index(['b'], 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