-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Tst return none inplace series #35210
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 return none inplace series #35210
Conversation
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.
some comments, ping on green
tm.assert_series_equal(sc, tc[~expected]) | ||
assert return_value is None |
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.
extra here
tm.assert_series_equal(sc, tc[~expected]) | ||
assert return_value is None |
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.
extra
tm.assert_series_equal(sc, tc1[~expected]) | ||
assert return_value is None |
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.
extra
tm.assert_series_equal(sc, tc2[~expected]) | ||
assert return_value is None |
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.
extra
tm.assert_series_equal(sc, tc2[~expected]) | ||
assert return_value is None |
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.
extra
tm.assert_series_equal(sc, tc[~expected]) | ||
assert return_value is None |
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.
extra
tm.assert_series_equal(sc, tc[~expected]) | ||
assert return_value is None |
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.
extra
@@ -81,7 +82,8 @@ def test_sort_values(self, datetime_series): | |||
"you must create a copy" | |||
) | |||
with pytest.raises(ValueError, match=msg): | |||
s.sort_values(inplace=True) | |||
return_value = s.sort_values(inplace=True) |
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 likely doesn't execute, can you revert (and if you are testing withing other raises tests)
Thx @jreback. Resolved. |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
thanks @r-toroxel |
verify we return None for all inplace calls in /series
related: #35181 (comment)