Skip to content
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

Resample with how='median' broken in some cases #1648

Closed
wesm opened this issue Jul 19, 2012 · 2 comments
Closed

Resample with how='median' broken in some cases #1648

wesm opened this issue Jul 19, 2012 · 2 comments
Labels
Bug Datetime Datetime data dtype
Milestone

Comments

@wesm
Copy link
Member

wesm commented Jul 19, 2012

No description provided.

@wesm
Copy link
Member Author

wesm commented Jul 19, 2012

Can't reproduce this. I think it was fixed between 0.8 and master (hit the bug during SciPy tutorial)

@eloraburns
Copy link
Contributor

I've reproduced something using how="median". It seems to hit when there are discontinuities in the resampling (i.e. minutes with no records when downsampling).

Both pandas 0.8.1 and 0.8.2.dev-f5a74d4 don't like it:

import pandas as pd
from datetime import datetime
d = pd.DataFrame([1, 2], index=[datetime(2012,1,1,0,0,0), datetime(2012,1,1,0,5,0)])
d.resample("T", how="median")
# Throws AssertionError

Github won't let me re-open this ticket, so I've opened #1688 instead (and commented here).

@wesm wesm reopened this Jul 27, 2012
wesm added a commit that referenced this issue Aug 11, 2012
@wesm wesm closed this as completed Aug 11, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Datetime Datetime data dtype
Projects
None yet
Development

No branches or pull requests

2 participants