-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
BUG: allow missing values in Index when calling Index.sort_values #35604
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
Changes from all commits
Commits
Show all changes
63 commits
Select commit
Hold shift + click to select a range
076061b
BUG: attempt initial fix
AlexKirko 3fa9351
TST: add test
AlexKirko 333c6e4
CLN: run black
AlexKirko 8414fd0
CLN: clean up unnecessary print
AlexKirko fa12898
exempt MultiIndex from handling missing values
AlexKirko e2575c9
CLN: run black
AlexKirko 4293e22
add na_position kwarg to sort_values
AlexKirko 275067e
debug na_position logic in sort_values
AlexKirko 098fe10
CLN: fix na_position type
AlexKirko f0d4c2d
DOC: mv to 1.2.0 since API is changed
AlexKirko 743eca6
DOC: make the comment more specific
AlexKirko 9d17d7a
TST: parametrize the test, add raise check
AlexKirko 744e5c1
CLN: run black
AlexKirko 13fcd94
CLN: fix versionadded
AlexKirko 33b02da
CLN: move na_position before key
AlexKirko 73cc94c
DOC: add comment for MultiIndex
AlexKirko 153fb06
REFACT: switch to nargsort from sorting.py
AlexKirko 3481b81
reverse equal els in nargsort of ascending is False
AlexKirko 9d92ddd
switch Series to nargsort
AlexKirko 7ec9e7e
Revert "reverse equal els in nargsort of ascending is False"
AlexKirko 2d16b8d
add TypeError to exception catch in nargsort
AlexKirko 8939040
reverse equal els order in nargsort (again)
AlexKirko 066f0af
CLN: isort test_datetime.py
AlexKirko 7e351cd
keep equal el order in nargsort (again)
AlexKirko 79ed8ee
add equals_reversible to nargsort and a debugging branch
AlexKirko 62268e8
CLN: remove debug code
AlexKirko 5cab3d4
CLN: remove extra newline in test_datetime
AlexKirko 30ac949
CLN: alter test_ops to preserve equal element order
AlexKirko 0ac0a3c
CLN: run black
AlexKirko 051c3e7
revert changes to Series and connected tests
AlexKirko dfdee40
reimplement test fix for Index.sort_values
AlexKirko acf6170
TST: don't expect same indexer for Index and PeriodIndex
AlexKirko 4b43852
TST: add Index types, switch to fixture
AlexKirko fb8f703
CLN: fix import order
AlexKirko fc58c3f
TST: add test for Index and PeriodIndex incompatibility
AlexKirko 1dfd4f2
TST: move fixture to pandas/conftest.py
AlexKirko 65c001a
TST: add na_position=None test case
AlexKirko dd82cc1
TST: move index type xfails to test_common.py
AlexKirko a3855ad
DOC: remove unnecessary comment in test_ops
AlexKirko 481de59
DOC: add xref to unstable sort issue
AlexKirko c7e8240
TST: add prints to debug numpy dev test fails
AlexKirko ad29fff
Revert "TST: add prints to debug numpy dev test fails"
AlexKirko 6ae6e8a
restart tests
AlexKirko 213b13b
Merge branch 'master' into ind-sort-values
AlexKirko 760bda1
DOC: remove junk from whatsnew
AlexKirko d8f9061
TST: warp test for debug
AlexKirko 2f8bec6
Revert "TST: warp test for debug"
AlexKirko 29d6849
remove new tests for debug
AlexKirko 8b81e55
Revert "remove new tests for debug"
AlexKirko 5b2a0d3
TST: try deep copy in fixture
AlexKirko a3310ba
TST: try immediate return instead of deep copy
AlexKirko e80bc9d
Revert "TST: try immediate return instead of deep copy"
AlexKirko 2007699
REFACT: add immediate returns
AlexKirko 8fd5a77
Merge branch 'master' into ind-sort-values
AlexKirko 2e39294
DOC: add comment to conftest clarifying deep copy
AlexKirko d78a9a2
restart tests
AlexKirko 5715c31
Merge branch 'master' into ind-sort-values
AlexKirko bfd2e9c
CLN: remove test-output.xml
AlexKirko 54a6e82
TST: check for MultiIndex through request.param
AlexKirko f60d2a8
CLN: revert changes to nargsort
AlexKirko af92fe8
DOC: add issue xref to xfail reason in period/test_ops.py
AlexKirko 6d33657
DOC: clarify xfail reasons and add comments
AlexKirko 4935309
REFACT: switch to isinstance, add blank line
AlexKirko File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.