-
-
Notifications
You must be signed in to change notification settings - Fork 19.1k
0.22.0 backports #18986
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
0.22.0 backports #18986
Conversation
The current default is 1, reproducing the behavior of pandas 0.21. The current test suite should pass. Currently, only nansum and nanprod actually do anything with `min_count`. It will not be hard to adjust other nan* methods use it if we want. This was just simplest for now. Additional tests for the new behavior have been added. (cherry picked from commit dbec3c9)
cc @jreback |
lgtm. hopefully will backport cleanly :> |
A couple builds on https://travis-ci.org/pandas-dev/pandas/builds/322879097 failed (which is just 0.21.1 + a new tag). The error in https://travis-ci.org/pandas-dev/pandas/jobs/322879104 shouldn't be a problem since it's a conda-build thing which won't affect the wheels or conda-forge. I'm haven't looked closely at the failures in https://travis-ci.org/pandas-dev/pandas/jobs/322879098#L1824 |
yeah those might actually be real. |
Oh, whoops, I used the I'll look into those other failures too. |
* API: Change the sum of all-NA / all-Empty sum / prod * Max, not min * Update whatsnew * Parametrize test * Minor cleanups * Refactor skipna_alternative * Split test * Added issue * More updates * linting * linting * Added skips * Doc fixup * DOC: More whatsnew (cherry picked from commit dedfce9)
[ci skip] (cherry picked from commit 4ed58d9)
550a21a
to
6766d6e
Compare
I messed up the backport earlier since a |
buf = compat.StringIO() | ||
df2.info(buf=buf) | ||
|
||
def test_groupby_sort(self): |
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.
This and test_groupby were moved to tests/categorical/test_groupby.py
. test_groupby
was updated for the API change.
It wasn't backported, so we use pytest directly.
These are already skipped for NumPy>=1.12, and buggy for NumPy 1.10.4 (cherry picked from commit 94ebca0)
6766d6e
to
0312ea9
Compare
Codecov Report
@@ Coverage Diff @@
## 0.22.x #18986 +/- ##
==========================================
- Coverage 91.33% 91.29% -0.04%
==========================================
Files 156 156
Lines 51835 51871 +36
==========================================
+ Hits 47344 47357 +13
- Misses 4491 4514 +23
Continue to review full report at Codecov.
|
you might need to add: 9c1071b to make the CI pass. |
No description provided.