Closed sfc-gh-mvashishtha closed 1 month ago
Thanks for the report! Confirmed on main. It appears to me the issue is that we view the values as integers prior to computing mask
of whether the values are NA or not.
I believe switching the order of these will resolve the bug, PRs to fix are welcome!
Hopefully this is an easy fix (and will need a test!), so marking as a good first issue.
take
took it !
Hey @40gilad , as a first time contributor, I'd hoped to take a stab at this issue. I see that you took it upon yourself to submit a proposed fix. No worries at all - I'll move onto another issue, but just wanted to flag this for future reference.
take
take
Whats still pending to do here?
Hi! Can I take this? I want to start collaborating and I found the solution
Pandas version checks
[X] I have checked that this issue has not already been reported.
[X] I have confirmed this bug exists on the latest version of pandas.
[ ] I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
Issue Description
For other dtypes, like integers and strings, groupby().any() returns
True
for groups where all the values are null, e.g.Expected Behavior
groupby().any() should return False for groups where all the timedelta values are null.
Installed Versions