-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
BUG: Resolving fallback from skipna flag in groupby().sum() #26179
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
BUG: Resolving fallback from skipna flag in groupby().sum() #26179
Conversation
Codecov Report
@@ Coverage Diff @@
## master #26179 +/- ##
==========================================
- Coverage 91.98% 91.98% -0.01%
==========================================
Files 175 175
Lines 52371 52371
==========================================
- Hits 48175 48171 -4
- Misses 4196 4200 +4
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #26179 +/- ##
==========================================
- Coverage 91.98% 91.98% -0.01%
==========================================
Files 175 175
Lines 52371 52371
==========================================
- Hits 48175 48171 -4
- Misses 4196 4200 +4
Continue to review full report at Codecov.
|
Removing whatsnew entry; not user facing.
Removing text unintentionally added while resolving conflict
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a test - should be the first part of any PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs a tests & whastnew
needs test; ping if you want to continue working. |
Hi folks, cnt = df.groupby(groupby_cols).sum(skipna=False)[prop_cols] _cython_agg_general() got an unexpected keyword argument 'skipna' |
git diff upstream/master -u -- "*.py" | flake8 --diff
Issue #20824 found that a fallback was occuring when df.Groupby().sum() was called with the skipna flag. This was occurring because the _cython_agg_general function was not accepting the argument, which has now been fixed. The fallback still occurs with strings in the df, however this is a deeper issue stemming from the _aggregate() call in groupby/ops.py (line 572).