3 ms·
> Since Pandas probably doesn’t do this out of the box It does, use df[column_name].str.split(expand=True), where df is your DataFrame.
by aportnoy 9y ago
> Since Pandas probably doesn’t do this out of the box
It does, use df[column_name].str.split(expand=True), where df is your DataFrame.
- applecrazy 9y agoI had pipe symbols in URLs. Will it split only on the first pipe symbol? Edit: nevermind, it does do that (https://pandas.pydata.org/pandas-docs/stable/generated/pandas.Series.str.split.html https://pandas.pydata.org/pandas-docs/stable/generated/panda...)
- cstuder 9y agoWhy do you mind? You throw away the rest of the URL in the next step anyway. :-)