So I have this Series data that can look like this
1 532
2 554
3 525
... ...
Name: score, Length: 941940, dtype: str
I'd like to split it on each character so that it becomes 3 columns so for example it should look like this after
score_0 score_1 score_2
1 5 3 2
2 5 5 4
3 5 2 5
... ... ... ...
[941940 rows x 3 columns]
I tried using the split
function by Pandas but it only splits on whitespaces if you don't set the delimiter and I don't know what to set it for to split on every character.
Ideally it should name the columns as "_" and also should just change nan
rows to being a row of 3 empty values for the new columns.