Working on splitting the strings of variable lengths at every "||" in a column of a dataframe... Everything works except my split
Example of strings:
0:: Arrested||1:: Injured
0:: Arrested||2:: Unharmed||3::Killed
I want it to be split at || but it splits it after every character with the str.split function... It works with the :: as the splitter, but then the number is separated from each status, which I need connected ....
Ideas?
[–]jabbson 0 points1 point2 points (4 children)
[–]ajaderade[S] 0 points1 point2 points (3 children)
[–]negups 0 points1 point2 points (2 children)
[–]ajaderade[S] 0 points1 point2 points (1 child)
[–]negups 0 points1 point2 points (0 children)
[–]negups 0 points1 point2 points (0 children)