简体   繁体   中英

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:

在此处输入图片说明

Desired Output:

在此处输入图片说明

Thank you for any help!!

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM