简体   繁体   中英

Pandas rows do columns

Hello I have this hull line rows that I want to convert to this keeping x and y coordinates as columns . I try many things, but I could not took results

if u want each row to list do something like this

Row_list =[] 
  
for index, rows in df.iterrows(): 
    new_list =[rows.column1, rows.column2, rows.column3] 
    Row_list.append(new_list) 

df is the dataframe

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