pyspark.pandas.Index.drop

Index.drop(labels: List[Any]) → pyspark.pandas.indexes.base.Index

Make new Index with passed list of labels deleted.

Parameters
labelsarray-like
Returns
droppedIndex

Examples

>>> index = ps.Index([1, 2, 3])
>>> index
Int64Index([1, 2, 3], dtype='int64')
>>> index.drop([1])
Int64Index([2, 3], dtype='int64')