Tweeted By @python_tip
Which line of code is eating all the memory? Discover it with memory_profiler:
— Daily Python Tip (@python_tip) November 3, 2018
$ python -m memory_profiler profiling_memory.py
(Unfortunately, this is a bit hard to do in Jupyter notebook. Either use %memit or see %mprun example from https://t.co/2g58UQpuNc) pic.twitter.com/58JwM0YWsZ