1

Hi!

Is there any efficient way in python 3 to release memory after removing object?

del DF
DF = pd.DataFrame()
gc.collect()

None of those is working properly. Only working approach is to DF.to_csv after working on it, restart the script and read_csv - that is really annoying.

from SecureString import clearmem - works fine in python 2, however it is not supported in python 3

Do you know any similiar method to SecureString that works in python 3?

Thanks in advance!

cs95
  • 379,657
  • 97
  • 704
  • 746
Meyk
  • 96
  • 10
  • It is garbage-collected python's decision to release memory. In general you cannot do that. `SecureString` is only meant to be used for cryptographic usecases. Potential duplicate: https://stackoverflow.com/questions/15455048/releasing-memory-in-python – meisterluk Apr 20 '18 at 11:51

0 Answers0