I want to replace a value into an excel and then save it.Using the following code I see that pandas is changing the format of the original excel.
writer = pd.ExcelWriter(str(Path.cwd())+'\file.xlsx', engine='openpyxl')new_df.to_excel(writer, sheet_name='test')writer.close()
Basically I see that, if for instance in the original excel file, after the save everything is lost. Is there a way to save the existing "layout" of the original excel?