В pandas следующий код разделит строку из столбца 1 на множество столбцов. есть ли способ сделать это в полярах?
d = {"col1": ["a/b/c/d", "a/b/c/d"]}
df= pd.DataFrame(data=d)
df[["a","b","c","d"]]=df["col1"].str.split("/",expand=True)
shape: (2, 5)
┌─────────┬─────┬─────┬─────┬─────┐
│ col1 ┆ a ┆ b ┆ c ┆ d │
│ --- ┆ --- ┆ --- ┆ --- ┆ --- │
│ str ┆ str ┆ str ┆ str ┆ str │
╞═════════╪═════╪═════╪═════╪═════╡
│ a/b/c/d ┆ a ┆ b ┆ c ┆ d │
│ a/b/c/d ┆ a ┆ b ┆ c ┆ d │
└─────────┴─────┴─────┴─────┴─────┘
Подробнее здесь: https://stackoverflow.com/questions/736 ... -delimiter