-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
OverflowError when trying to use date/times #18348
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're trying to use matplotlib's See #18344 and https://github.com/matplotlib/matplotlib/pull/9794/files |
@TomAugspurger any idea why we now get at once two such bug reports? It seems coincidental with the matplotlib registering stuff, but I don't see how it can be influenced by that. |
I think it is just a strange coincidence :) @adamwasi, any reason you just recently tried to use matplotlib's formatters on pandas objects? |
@TomAugspurger @jorisvandenbossche If you follow the SO thread, the question before the one I posted I asked how to get the data into matplotlib, someone recommended pandas was good and getting data in, so I used it. I thought they would have known better than me that I wouldn't work for the example I was trying to work off of. Looks like I'm back to square 1 trying to get data in matplotlib again. |
@adamwasi If you are using the latest version of pandas (0.21.0), this should work for you. The reason your example is failing because pandas registers some plotting converters that can deal with datetime64 data, but as a result, the matplotlib formatters (eg the DateFormatter) don't know what to do with such data. |
I'm having the same problem. I'm not sure I understand what I should do to fix it. I have pandas 0.21.0 and matplotlib 2.1.0. Do I need to convert them to datetime objects? |
Hello, I have an issue that I posted to SO that wasn't able to be resolved there, seems like it should be straightforward.
https://stackoverflow.com/questions/47227268/pandas-dataset-overflowerror-when-trying-to-use-datetime-data
I have since hardcoded in some sample data to ease error reproduction:
Result:
The text was updated successfully, but these errors were encountered: