-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
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
CLN: removed setter method of categorical's ordered attribute #13671
Conversation
80e1c71
to
be61103
Compare
Current coverage is 84.38%@@ master #13671 diff @@
==========================================
Files 142 142
Lines 51223 51220 -3
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
- Hits 43223 43221 -2
+ Misses 8000 7999 -1
Partials 0 0
|
@@ -808,14 +808,6 @@ def test_set_ordered(self): | |||
cat2.set_ordered(False, inplace=True) | |||
self.assertFalse(cat2.ordered) | |||
|
|||
# deperecated in v0.16.0 | |||
with tm.assert_produces_warning(FutureWarning): | |||
cat.ordered = False |
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 change it to check AttributeError
is raised.
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.
Done.
be61103
to
58938e7
Compare
@sinhrks : added the test to check for |
thanks! side note, can you catch these warnings (prob need to fix code to not have them emitted).
|
@jreback : probably something in the code would be the better fix in the future, but catching them makes sense FTTB. If I have time later, I'll give it a shot. |
thanks! |
Deprecated back in
0.16.0
here.