Lucas Juca
Lucas Juca

Reputation: 1

i want to reorder the data of a column then Split it to new columns in a pandas DataFrame

i am trying to do this in python for 2 day but i have been unsuccessful.

Table:

enter image description here

Desired Output:

enter image description here

Thank you for any help!!

Upvotes: 0

Views: 303

Answers (1)

synaptikon
synaptikon

Reputation: 699

Here is something that might help: https://www.geeksforgeeks.org/python-pandas-split-strings-into-two-list-columns-using-str-split/ (Specifically Example #2)

For reordering columns, have a look at this: https://stackoverflow.com/a/32131398/2566205

Upvotes: 1

Related Questions