mirror of
https://github.com/metafy-social/python-scripts.git
synced 2025-02-12 11:28:12 +00:00
11 lines
311 B
Python
11 lines
311 B
Python
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 to save as Excel file.xlsx', index=False, header=True)
|
|
print('Converted successfuly')
|
|
|
|
if __name__ == "__main__":
|
|
makeExcel()
|