python-scripts/scripts/CSV_to_Excel/script.py

10 lines
313 B
Python
Raw Normal View History

2022-10-02 07:00:52 +00:00
import pandas as pd
def makeExcel():
df = pd.read_csv('Path to your CSV file.csv')
# index and header can be set True or False accoring to needs
df.to_excel('Path where save as Excel file.xlsx', index=False, header=True)
print('Converted Successfuly')
if __name__ == "__main__":
makeExcel()