-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: Fix index order for Index.intersection() #15583
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
Changes from 1 commit
c12bb3f
c2a8dc3
a4ead99
e7bcd28
d9e29f8
1197b99
784fe75
b977278
ec836bd
047b513
c96306d
f0d9d03
ef2581e
3c200fe
33eb740
654288b
5bf1508
9e39794
968c7f1
8d2e9cc
73df69e
64e86a4
2d4e143
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -124,9 +124,12 @@ | |
----------%s | ||
right : DataFrame | ||
how : {'left', 'right', 'outer', 'inner'}, default 'inner' | ||
* left: use only keys from left frame (SQL: left outer join) | ||
* right: use only keys from right frame (SQL: right outer join) | ||
* outer: use union of keys from both frames (SQL: full outer join) | ||
* left: use only keys from left frame (SQL: left outer join), preserving | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: can you format these lines like
|
||
their order | ||
* right: use only keys from right frame (SQL: right outer join), preserving | ||
their order | ||
* outer: use union of keys from both frames (SQL: full outer join), and | ||
sort them lexicographically | ||
* inner: use intersection of keys from both frames (SQL: inner join), | ||
preserving the order of the left keys | ||
on : label or list | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2844,6 +2844,8 @@ def _reindex_non_unique(self, target): | |
level : int or level name, default None | ||
return_indexers : boolean, default False | ||
sort : boolean, default False | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. add a versionadded tag |
||
Sort the join keys lexicographically in the result Index. If False, | ||
the order of the join keys depends on the join type (how keyword) | ||
|
||
.. versionadded:: 0.20.0 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can you add a sentence explaining what sort does (I know its repeatative, but this is a different part of the code) |
||
|
||
|
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.
say what this did previously. No need to mention
Index.join
orDataFrame.merge
and say.align
methods. simpler is better.