-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Pandas 0.23.4: when does "ValueError: Values falls before first bin" happens during grouping? #22619
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
Could you fill out the issue template, including a reproducible example and the output of |
I didn't fill the form because I cannot make a reproducible example. Any demo set works, but real data don't. At the moment I am trying to isolate the DataFrame rows causing the issue. I will let you know as soon as possible when I am successful in this. I am working with an old Debian jessie that cannot be updated, and Python 2.7. (I didn't know about pandas.show_versions(), really handy indeed)
|
Got it: it has to do with time localization of df's datetimeindex. To group my data I need first to convert the index from UTC to local time.
This instead works without any problem: datetimeindex is first localized to UTC, then to local:
|
Thanks for the report; this looks like a duplicate of #9119 ( |
I completely missed the previous issue. It has been opened for 4 years! |
Hoping to get to it soon; it's tricky since the resampling code has been there for a while. Extra eyes are always appreciated! |
I didn't find any reference of a Pandas error that happens during grouping:
"ValueError: Values falls before first bin"
.Can it be due to a internal bug?
According to my opinion it should never happen that a group cannot be done. None should be returned instead.
The trace is:
The text was updated successfully, but these errors were encountered: