-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Pandas 0.15.1 df.interpolate().plot() wrong result with NaT in datelike index #8914
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
you need to provide copy pastable code and pd.show_versions() |
import pandas as pd INSTALLED VERSIONScommit: None pandas: 0.15.1 |
This is correct. Not sure what you think is incorrect here. Not sure that matplotlib handles
|
look at the plot df.interpolate().plot() there you see that the line expanded to the 18th century. |
I am using matplotlib 1.4.0 and current master of pandas, and it raises seems ok to me. Not really sure matplotlib actually supports and easy enough to simply drop them first. |
Agreed that plotting (or anything) with a NaT in the index isn't good practice. Although strangely, these two aren't the same:
The first one has the x-axis decreasing (most recent to oldest) The second one has the x-axis increasing. |
Could the currently processed #12405 be a duplicate of this? |
@jondo could be; i'll put an xref on that issue. |
I am using a DataFrame df with dates as index and some data with missing values.
All dates are from the same year 1999 and the data has some missing vales.
There is one record in the dates that is NaT.
When I use df.interploate().plot() a line is plotted between 1996 and 1716.
When NaT is committed the correct plot appears.
The text was updated successfully, but these errors were encountered: