Код: Выделить всё
train = pl.from_repr("""
┌───────┐
│ Cabin │
│ --- │
│ str │
╞═══════╡
│ B/0/P │
│ F/0/S │
│ A/0/S │
│ A/0/S │
│ F/1/S │
└───────┘
""")
Код: Выделить всё
shape: (5, 3)
┌─────┬─────┬─────┐
│ A ┆ B ┆ C │
│ --- ┆ --- ┆ --- │
│ str ┆ i8 ┆ str │
╞═════╪═════╪═════╡
│ B ┆ 0 ┆ P │
│ F ┆ 0 ┆ S │
│ A ┆ 0 ┆ S │
│ A ┆ 0 ┆ S │
│ F ┆ 1 ┆ S │
└─────┴─────┴─────┘
Код: Выделить всё
Series: 'Cabin' [list]
[
["B", "0", "P"]
["F", "0", "S"]
["A", "0", "S"]
["A", "0", "S"]
["F", "1", "S"]
]
Подробнее здесь: https://stackoverflow.com/questions/744 ... olars-data