Код: Выделить всё
df = pl.DataFrame({
"Movie": [[None, "IT",]],
"Count": [[30, 27]],
})
shape: (1, 2)
┌──────────────┬───────────┐
│ Movie ┆ Count │
│ --- ┆ --- │
│ list[str] ┆ list[i64] │
╞══════════════╪═══════════╡
│ [null, "IT"] ┆ [30, 27] │
└──────────────┴───────────┘
Код: Выделить всё
shape: (1, 1)
┌───────────┐
│ data │
│ --- │
│ struct[2] │
╞═══════════╡
│ {"IT",27} │
└───────────┘
Подробнее здесь: https://stackoverflow.com/questions/792 ... -two-lists
Мобильная версия