import pandas as pd file = pd.read_csv(f"output/InverSynth_C6XL_20231201-103344") #Read the dataframe file.to_excel(f'foo.xlsx', index=False) #Save the dataframe