pandas.Series.list.__getitem__#
- Series.list.__getitem__(key)[source]#
- Index or slice lists in the Series. - Parameters:
- keyint | slice
- Index or slice of indices to access from each list. 
 
- Returns:
- pandas.Series
- The list at requested index. 
 
 - Examples - >>> import pyarrow as pa >>> s = pd.Series( ... [ ... [1, 2, 3], ... [3], ... ], ... dtype=pd.ArrowDtype(pa.list_( ... pa.int64() ... )) ... ) >>> s.list[0] 0 1 1 3 dtype: int64[pyarrow]