I have read this answer:
Pandas / xlsxwriter writer.close() does not completely close the excel file
but this solution won\'t work for me as the solution for t