coiled / dask-community

Issue tracker for the Dask community team
MIT License
2 stars 0 forks source link

[Stack Overflow] Split column in a Dask Dataframe into n number of columns #693

Open github-actions[bot] opened 2 years ago

github-actions[bot] commented 2 years ago

In a column in a Dask Dataframe, I have strings like this:

column_name_1column_name_2a^b^cje^f^gk^lh^im

I need to split these strings into columns in the same data frame, like this

column_name_1column_name_2column_name_1_1column_name_1…


Would you like to know more?

Read the full article on the following website:

https://stackoverflow.com/questions/71493347/split-column-in-a-dask-dataframe-into-n-number-of-columns

scharlottej13 commented 2 years ago

Docs for https://docs.dask.org/en/latest/generated/dask.dataframe.Series.str.split.html are just copied from pandas and could do a much better job of explaining the limitations. Or, maybe we could implement n=-1 w/ expand=True?