import pandas as pd data = pd.read_csv("k.csv") data.to_excel("new_file.xlsx", index=None, header=True)