I am using pandas to save a large amount of data as an excel file. This takes a few dozen seconds, and if the user clicks on the excel file before it is completed, excel will tell them the file is corrupted.
For a for loop / iterable, the tqdm module works a charm. Is there something similar for saving? The code looks like:
writer = pd.ExcelWriter(os.path.join(output_folder,"output.xlsx"),
strings_to_numbers=True)
final_df.to_excel(writer, header=True, index=False)
tqdm_gui.pandas(desc="Saving progress")
writer.save()