pandas.Series.list.__getitem__

pandas 3.1.1 · Series and accessors · method

Implement bracket indexing to select a value or subset.

Call syntax

Series.list.__getitem__(key)

Run the example

Edit the example and select Run Python to see the result.

Parameters

ParameterRequirementAccepted values and behavior
key Required
Positional or keyword
int | slice

Provide the lookup key, or a transformation callable for a sorting method.

Returns

pandas.Series