-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
update fix ignored sort in api.py and add test #43833
update fix ignored sort in api.py and add test #43833
Conversation
Hello @CloseChoice! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2021-10-08 14:56:28 UTC |
@@ -63,3 +63,13 @@ def test_concat_series_with_numpy(to_concat_dtypes, result_dtype): | |||
result = pd.concat([s2, s1], ignore_index=True) | |||
expected = pd.Series([0, 1, 0, 1, pd.NA], dtype=object).astype(result_dtype) | |||
tm.assert_series_equal(result, expected) | |||
|
|||
|
|||
def test_concat_frame_with_sort_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.
can you move to pandas/tests/reshape/concat/test_sort.py
put near simliar tests
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.
might have to adjust some other tests
Can we just adjust other test results? That would be technically be a breaking change, wouldn't it? |
my point about adjusting test is that this case might be only internal or not - will have to see |
@github-actions pre-commit |
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.
looks good, can you add a whatsnew note for 1.4, reshaping and ping on green
…-ignores-sort-param-43375
…eChoice/pandas into FIX-concat-ignores-sort-param-43375
@github-actions pre-commit |
@jreback all lights on green. I also added a whatsnew entry. |
thanks @CloseChoice |
As mentioned in the ticket, the function
api.union_indexes
does not handle the sort parameter. I added support for it, but we explicitly check that sort can only take the valuesFalse
andNone
in here