Pandas's memory management
Hi,

Lately I have started to use pandas heavily with relatively big files.
When the RAM becomes full I delete (with del and gc) the big objects (Data
frames), though this doesn't clear the memory.

Can some onr please advise how to clear variables from RAM, similar to R with rm(some_object) ; gc()

Additionally did some experiments about this and here are the results :

Started with ~600MB RAM:
1. Ran two queries that jumped the memorey to ~ 3900MB (query -> to Data frame)
2. Removing these Data frames with one of the followings : 
   %xdel df
   %reset_selective -f df
   def malloc_trim():
    import ctypes
     ctypes.CDLL('libc.so.6').malloc_trim(0)
   
   and then gc.collect(), reduced the RAM  similarly (with all three methods)  to  ~3000MB 
3. afterwards running %reset -f =>  most of the RAM was cleaned
4. The script do some data "Jiu Jitsu"  a then store result to HD. Restarting IPython and loading this file barley uses RAM !

What would you recommend ?

Regards ,
Boris
