-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
MAINT: Removed some warnings in tests #13702
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
Conversation
@@ -2934,26 +2933,28 @@ def test_value_counts_with_nan(self): | |||
s = pd.Series(pd.Categorical(["a", "b", "a"], |
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 is an incorrect construction, categories should not be nan
by definition
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.
The test is expecting a nan
in the construction of the categories if you look at what it is testing.
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.
and that's wrong
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.
Ah, okay. Fair enough. Done.
Current coverage is 84.52%@@ master #13702 diff @@
==========================================
Files 141 141
Lines 51145 51145
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
- Hits 43233 43230 -3
- Misses 7912 7915 +3
Partials 0 0
|
fd12eb3
to
feecb8b
Compare
@jreback : it seems like |
can't be very many as we have a warning for it |
|
there are warnings but should not be from that pls show an example or 2 |
Perhaps I'm conflating unnecessary tests with backwards compat tests since the code still has to work with this deprecated behaviour, not sure... |
yeah these are all fine for now since we have enough catching of the warning |
Okay, sounds good. I'll fix the other one then. |
feecb8b
to
e7292d3
Compare
@jreback : Removed the previous warnings, and Travis is still passing. Ready to merge if there are no other concerns. |
ty! |
Per discussion with @jreback here.