Код: Выделить всё
import polars as pl
df = pl.from_repr("""
┌──────┬─────────┐
│ nums ┆ letters │
│ --- ┆ --- │
│ i64 ┆ str │
╞══════╪═════════╡
│ 160 ┆ B │
│ 540 ┆ I │
│ 550 ┆ I │
│ 590 ┆ B │
│ 370 ┆ I │
└──────┴─────────┘
""")
Код: Выделить всё
shape: (2, 1)
┌─────────────────┐
│ nums │
│ --- │
│ list[i64] │
╞═════════════════╡
│ [160, 540, 550] │
│ [590, 370] │
└─────────────────┘
Подробнее здесь: https://stackoverflow.com/questions/718 ... ive-values
Мобильная версия