-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
TypeError when plotting TimeSeries with NaN data, maybe a BUG? #5310
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
I don't have the problem on Windows 7, pandas 0.12 and matplotlib 1.3.0 (installed through Anaconda). Strange. |
If your codr previously worked with pandas 0.11 and downgrading to 0.11 did |
I can't replicate the issue, see http://nbviewer.ipython.org/7135636. |
Thanks all for testing on your systems. Again many thanks. I think we can close the issue! |
We'll have a release candidate soon - if you're willing to install it and |
You are right. I should give it a try, even though not a crack at all; maybe it helps the other non-cracks ;). I'll give it a go and let you know! |
Great! :) Should have a release candidate soon (though it's going to be |
I get a TypeError message when I try to plot a pandas TimeSeries object that contains NaN's. The strange thing is, this does not happen when I have 'inf' values, or when a normal series is used with integer index values.
Now, all of a sudden (no recent updates I can think of) all my plotting scripts get the TypeError, but before they worked fine. I can do dropna() before, but then missing data is interpolated in the plot, which I do not want; the data is after all missing... If I do fillna(np.inf), things are plotting as I like.
As discussed below, I am not sure this is a bug in pandas 0.12 / matplotlib 1.3 but something can be wrong with my installation. I just don't know what that can be and a fresh install is not an option now. I hope someone can test the code and provide ideas on how I can solve the problem?
The following code causes problems:
I am using pandas 0.12 with matplotlib 1.3 on python x,y 2.7.5.1 on Windows 7.
Upgrading to matplotlib 1.3.1 or downgrading to pandas 0.11 did not solve the problem.
I have tried the same code in an WinPython-64bit -2.7.4.1.amd64 that I have installed and then the code works fine. Dependencies are then:
pandas 0.11 and matplotlib 1.2.1. Maybe this indicates something is wrong with my python x,y installation?
Happy to provide more details. Looking forward to your help!
Maarten
The text was updated successfully, but these errors were encountered: