-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: Unable to aggregate TimeGrouper #7453
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
first 2 look fixed, just need validation tests. Then can deal with 3rd issue separately. |
we still need tests for the first 2 parts of this issue (validation tests), yes? |
Not sure if this fits in here but I have another issue with nth when I groupby a TimeGrouper and another categorical variable. The categorical variable gets dropped in the aggregation step. Here's an example
This works like I would expect
But this does not
|
you might be using an older version
|
Yup. You're right. Just updated from 0.18.0 to 0.18.1 and it works. Thanks. |
Derived from #7373. There seems to be 3 issues related to
TimeGrouper
aggregation.1. var, std, mean
var/std/mean raises
ValueError
when group key containsNaT
.2. size (#7600)
size
raisesAttributeError
regardless ofNaT
existence.3. first, last, nth
It looks work, but
TimeGrouper
outputs different result from normalgroupby
.I assume the difference derived from
BinGrouper
sorts rows differently from normal groupby. Thus, result of normal groupby andTimeGrouper
can differ.The text was updated successfully, but these errors were encountered: