JUPYTER CONSUMES 100 disk

36

#delete the data
a, b, c = pd.DataFrame(), pd.DataFrame(), pd.DataFrame()
lst = [a, b, c]
del a, b, c # dfs still in list
del lst     # memory release now

#Track CPU and RAM usage
import psutil # gives a single float value
psutil.cpu_percent() # gives an object with many fields
psutil.virtual_memory()
dict(psutil.virtual_memory()._asdict()) # you can convert that object to a dictionary 

Comments

Submit
0 Comments