pandas.Series.str.get
pandas 3.1.1 · Series and accessors · method
Extract an element at the given position or key from each string or list-like value.
Call syntax
Series.str.get(i)Run the example
Edit the example and select Run Python to see the result.
Parameters
| Parameter | Requirement | Accepted values and behavior |
|---|---|---|
i |
Required Positional or keyword |
int or hashable dict label |
Returns
Series or Index