-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
TST: Add tests for sparse quantile/where #17568
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
TST: Add tests for sparse quantile/where #17568
Conversation
pandas/tests/sparse/test_frame.py
Outdated
@pytest.mark.xfail(reason='Wrong SparseBlock initialization ' | ||
'(GH 17386)') | ||
def test_where_with_int_data_and_bool_other(self): | ||
# GH 17386 |
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.
pls pls pls use parametrize. you are repeating way too many things
Codecov Report
@@ Coverage Diff @@
## master #17568 +/- ##
==========================================
+ Coverage 91.22% 91.25% +0.02%
==========================================
Files 163 163
Lines 49624 49624
==========================================
+ Hits 45269 45282 +13
+ Misses 4355 4342 -13
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #17568 +/- ##
==========================================
+ Coverage 91.24% 91.25% +0.01%
==========================================
Files 163 163
Lines 50091 50091
==========================================
+ Hits 45704 45711 +7
+ Misses 4387 4380 -7
Continue to review full report at Codecov.
|
@jreback Thanks for your review. Parametrized |
pandas/tests/sparse/test_frame.py
Outdated
@@ -1385,3 +1385,209 @@ def test_numpy_func_call(self): | |||
'std', 'min', 'max'] | |||
for func in funcs: | |||
getattr(np, func)(self.frame) | |||
|
|||
@pytest.mark.xfail(reason='Wrong SparseBlock initialization ' | |||
'(GH 17386)') |
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.
you need to parameterize on the data itself as well
@jreback Parametrized |
can you rebase |
6a1efaa
to
3714bff
Compare
@jreback Rebased. |
these tests are failing the CI, not really sure why |
@jreback Okay. I'll check. |
3714bff
to
6af4266
Compare
@jreback It seems that segfault happened in |
thanks @Licht-T love to have the fixes for these! |
git diff upstream/master -u -- "*.py" | flake8 --diff
This is the part of #17386.