Skip to content

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

Merged
merged 12 commits into from
Jul 10, 2020

Conversation

r-toroxel
Copy link
Contributor

verify we return None for all inplace calls in /series

related: #35181 (comment)

@jreback jreback added Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate Testing pandas testing functions or related to the test suite labels Jul 10, 2020
@jreback jreback added this to the 1.1 milestone Jul 10, 2020
Copy link
Contributor

@jreback jreback left a 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
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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)
Copy link
Contributor

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)

@r-toroxel
Copy link
Contributor Author

Thx @jreback. Resolved.

@jreback
Copy link
Contributor

jreback commented Jul 10, 2020

/azp run

@azure-pipelines
Copy link
Contributor

Azure Pipelines successfully started running 1 pipeline(s).

@jreback jreback merged commit c7626b1 into pandas-dev:master Jul 10, 2020
@jreback
Copy link
Contributor

jreback commented Jul 10, 2020

thanks @r-toroxel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants