Answers for "write specific columns to csv pandas"

1

write specific columns to csv pandas

df[['col1', 'col3']].to_csv('some_file.csv')
Posted by: Guest on April-06-2021

Python Answers by Framework

Browse Popular Code Answers by Language