Given a Series
object which I have pulled from a dataframe, for example through:
columns = list(df)
for col in columns:
s = df[col] # The series object
The Series contains a <class 'list'>
in each row, making it look like this:
0 [116, 66]
2 [116, 66]
4 [116, 66]
6 [116, 66]
8 [116, 66]
...
1498 [117, 66]
1500 [117, 66]
1502 [117, 66]
1504 [117, 66]
1506 [117, 66]
How could I split this up, so it becomes two columns in the Series instead?
0 116 66
2 116 66
...
1506 116 66
And then append it back to the original df
?