Skip to content

BUG: implement .sort_index(...inplace=True) for #11402 #11422

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

Closed
wants to merge 1 commit into from

Conversation

cfperez
Copy link
Contributor

@cfperez cfperez commented Oct 23, 2015

closes #11402

Adds inplace sort_index() for Series.

@@ -5328,6 +5328,26 @@ def test_sort_index(self):
assert_series_equal(sorted_series,
self.ts.reindex(self.ts.index[::-1]))

def test_sort_index_inplace(self):
rindex = list(self.ts.index)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add the issue number as a comment

@jreback
Copy link
Contributor

jreback commented Oct 23, 2015

pls also add a whatsnew note for 0.17.1 (put in API changes even though this is a bug-fix, as it technically is an api change)

@jreback jreback added Bug Compat pandas objects compatability with Numpy or Python functions labels Oct 23, 2015
@jreback jreback added this to the 0.17.1 milestone Oct 23, 2015
@jreback jreback changed the title BUG: Fix for #11402 BUG: implement .sort_index(...inplace=True) for #11402 Oct 23, 2015
@cfperez
Copy link
Contributor Author

cfperez commented Oct 27, 2015

Updated and running green.

@jreback
Copy link
Contributor

jreback commented Oct 27, 2015

merged via 1135ce3

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Compat pandas objects compatability with Numpy or Python functions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Series.sort_index(inplace=True) always returns a new Series
2 participants