-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
DOC: Corrected Out-of-date list of sort algorithms #38503
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
DOC: Corrected Out-of-date list of sort algorithms #38503
Conversation
can you also update the tests in pandas/tests/series/methods/test_sort_index.py to use stable (where we use mergesort), just parameterize a test is prob good enough. |
Addition to doc Fix PR: pandas-dev#38503 Implemented changes: Parameterized tests with addition of the newly supported sorting method stable from numpy 1.15.0
Addition to doc Fix PR: pandas-dev#38503 Implemented changes: Parameterized tests with addition of the newly supported sorting method stable from numpy 1.15.0
27c15ae
to
783a319
Compare
Addition to doc Fix PR: pandas-dev#38503 Implemented changes: Parameterized tests with addition of the newly supported sorting method stable from numpy 1.15.0
783a319
to
5ebcd52
Compare
Done :) |
LGTM, mind fixing up the merge conflict @DonPablo99? |
@@ -104,18 +104,13 @@ def test_sort_index_multiindex(self, level): | |||
res = s.sort_index(level=level, sort_remaining=False) | |||
tm.assert_series_equal(s, res) | |||
|
|||
def test_sort_index_kind(self): | |||
@pytest.mark.parametrize("kind", ["quicksort", "mergesort", "heapsort", "stable"]) |
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.
can you make this a fixture (put in the top of this test file is fine) as well.
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.
can you do this
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.
Should I just add a fixture or add it and replace the parametrize statements ?
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.
add a fixture in this file and use it
can you merge master and update |
5ebcd52
to
9ebdbb2
Compare
Addition to doc Fix PR: pandas-dev#38503 Implemented changes: Parameterized tests with addition of the newly supported sorting method stable from numpy 1.15.0
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.
comment on testing. ping on green.
@@ -104,18 +104,13 @@ def test_sort_index_multiindex(self, level): | |||
res = s.sort_index(level=level, sort_remaining=False) | |||
tm.assert_series_equal(s, res) | |||
|
|||
def test_sort_index_kind(self): | |||
@pytest.mark.parametrize("kind", ["quicksort", "mergesort", "heapsort", "stable"]) |
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.
can you do this
Reference Issues/PRs Fixes: pandas-dev#38287 Implemented changes: Changed the docstring of all the methods using np.sort as it now includes one additional stable algorithm
Addition to doc Fix PR: pandas-dev#38503 Implemented changes: Parameterized tests with addition of the newly supported sorting method stable from numpy 1.15.0
9ebdbb2
to
d5e64c9
Compare
Addition to doc Fix PR: pandas-dev#38503 Implemented changes: Parameterized tests with addition of the newly supported sorting method stable from numpy 1.15.0
d5e64c9
to
19d04d6
Compare
Addition to doc Fix PR: pandas-dev#38503 Implemented changes: Parameterized tests with addition of the newly supported sorting method stable from numpy 1.15.0
19d04d6
to
3d0ddc0
Compare
Addition to doc Fix PR: pandas-dev#38503 Implemented changes: Parameterized tests with addition of the newly supported sorting method stable from numpy 1.15.0
3d0ddc0
to
16bb784
Compare
thanks @DonPablo99 |
Reference Issues/PRs
Fixes: #38287
Implemented changes:
Changed the docstring of all the methods using np.sort as it now includes one additional stable algorithm