-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Memory leak with pandas plot #9003
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
pls |
did you try this just plotting using matplotlib (taking the same data)? |
For your second question, with plt.plot(df.index, df.test), it works without memory leak but it can show axis as datetime like for df.test.plot(). |
@TomAugspurger can you have a look? |
pandas
matplotlib:
Might be something here. I've never debugged memory usage in python. This might be useful. |
this works nicely in IPython: https://pypi.python.org/pypi/memory_profiler |
I think I've identified the leak - the plotted data is being passed between a few functions via
And after:
|
The actual cycle is |
@alexis0587 @TomAugspurger Could you guys try out my patch in #9307 when you get a chance? |
SO : http://stackoverflow.com/questions/27295220/matplotlib-simple-case-memory-leak-with-pandas
Seems to be a leak memory bug with pandas.plot. It works well with plt.plot(df.index, df.test) (see below)
Simple case here :
And the output is (memory error as of i=6):
Graph of the memory for the computer from launch the script to breack and to kill the console.

The text was updated successfully, but these errors were encountered: