I'm trying to understand the del
operator in python. I'm merging two large data frames and trying to delete the participating data frames.
new_df = pd.merge(df1, df2, on='level', how='inner')
del df1
del df2
Is this going to release the memory allocated by df1 and df2 or just delete just the reference?
I have also tried using gc.collect
however, I'm getting a memory error in the first operation after the merge