pandas.Series.list.__getitem__
- Series.list.__getitem__(key)[source]
-
Индексация или срез списков в Series.
- Параметры:
-
- ключ:int | slice
-
Индекс или срез индексов для доступа к каждому списку.
- Возвращаемое значение:
-
- pandas.Series
-
Список по запрошенному индексу.
Примеры
>>> 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]
© 2008–2022, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/2.2.2/reference/api/pandas.Series.list.__getitem__.html