As I understood, there are no such functions: del, clear cache or garbage in openpyxl, maybe I am wrong. The problem I'm facing: The problem occurs when I want to save 2nd generated .xlsx file. It somehow uses previous .xlsx file (and it's data) and can't merge some cells (from prev xlsx) since it does not have a write attribute.
So how I can close/shutdown previous xlsx. I even tried remove xlsx file before generating new one and it also did not help!
code: (I dont have permission to post pics only links): pic 1:src(code, tree) how I am saving:
wb.save(filename=self.fileName)
wb.close()