Answers for "export some columns to csv pandas"

0

export some columns to csv pandas

deselectlist =[ 'Class', 'part_id' , 'image_file']
 selectlist =[x for x in data.columns if x not in deselectlist]
 datatowrite = date[selectlist]

 datatowrite.to_csv('new.csv')
Posted by: Guest on March-31-2021

Python Answers by Framework

Browse Popular Code Answers by Language