Select nth column index in a DataFrame.
Column index to select, starting at 0.
> df = pl.DataFrame({> "ham": [1, 2, 3],> "hamburger": [11, 22, 33],> "foo": [3, 2, 1]})> df.select(nth(2))shape: (3, 1)╭─────╮│ foo ││ --- ││ i64 │╞═════╡│ 3 │├╌╌╌╌╌┤│ 2 │├╌╌╌╌╌┤│ 1 │╰─────╯ Copy
> df = pl.DataFrame({> "ham": [1, 2, 3],> "hamburger": [11, 22, 33],> "foo": [3, 2, 1]})> df.select(nth(2))shape: (3, 1)╭─────╮│ foo ││ --- ││ i64 │╞═════╡│ 3 │├╌╌╌╌╌┤│ 2 │├╌╌╌╌╌┤│ 1 │╰─────╯
Select nth column index in a DataFrame.