-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
ValueError exception with pd.resample #8683
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 can reproduce this with your data (and the error message is in any case not very helpfull), but could you try to pin it down to which 'feature' of the data is causing it? |
@jorisvandenbossche You are right, it also fails with
|
has to do with a bug I think in the edge detection (_adjust_bin_edges). This are quite a lot of edge cases. |
BTW, a small code sample to reproduce it:
|
Fixes an issue where resampling over multiple days causes a ValueError when a number of days between the normalized first and normalized last days is not a multiple of the frequency. Added test TestResample.test_resample_anchored_multiday Closes pandas-dev#8683
When running
df.resample('2200L', how='sum', label='right')
withdf
:I got:
with
Python 3.4.1 :: Anaconda 2.1.0 (x86_64)
and:The text was updated successfully, but these errors were encountered: