Код: Выделить всё
df = pl.DataFrame({
"foo": [[1, 2, 3], [7, 8, 9]],
"bar": [[4, 5, 6], [1, 0, 1]]
})
Код: Выделить всё
shape: (4, 4)
┌──────┬────────┬────────┬────────┐
│ Name ┆ Value0 ┆ Value1 ┆ Value2 │
│ --- ┆ --- ┆ --- ┆ --- │
│ str ┆ i64 ┆ i64 ┆ i64 │
╞══════╪════════╪════════╪════════╡
│ foo ┆ 1 ┆ 2 ┆ 3 │
│ foo ┆ 7 ┆ 8 ┆ 9 │
│ bar ┆ 4 ┆ 5 ┆ 6 │
│ bar ┆ 1 ┆ 0 ┆ 1 │
└──────┴────────┴────────┴────────┘
Подробнее здесь: https://stackoverflow.com/questions/776 ... ecific-way