Advertisement
elena1234

From csv file into xlsx with Pandas

Mar 19th, 2022 (edited)
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. import pandas as pd
  2.  
  3. source = pd.read_csv('C:/Users/eli/Desktop/CO2 Emissions Dataset.csv')
  4. source.to_excel('CO2 Emissions.xlsx', index = None, header=True)
  5.  
  6.  
  7. https://knowledgebase.constantcontact.com/tutorials/KnowledgeBase/6269-convert-a-text-file-to-an-excel-file?lang=en_US
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement