1import pandas as pd
2data_xls = pd.read_excel('excelfile.xlsx', 'Sheet2', dtype=str, index_col=None)
3data_xls.to_csv('csvfile.csv', encoding='utf-8', index=False)
4
1import pandas as pd
2
3data = pd.read_csv("k.csv")
4
5data.to_excel("new_file.xlsx", index=None, header=True)
1with open('dict.csv', 'w') as csv_file:
2 writer = csv.writer(csv_file)
3 for key, value in mydict.items():
4 writer.writerow([key, value])