polars.DataFrame.select_at_idx

DataFrame.select_at_idx(idx: int) polars.internals.series.Series

Select column at index location.

Parameters
idx

Location of selection.

.. deprecated:: 0.10.20

Examples

>>> df = pl.DataFrame(
...     {
...         "foo": [1, 2, 3],
...         "bar": [6, 7, 8],
...         "ham": ["a", "b", "c"],
...     }
... )
>>> df.select_at_idx(1)
shape: (3,)
Series: 'bar' [i64]
[
        6
        7
        8
]