-
-
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
BUG: fix missing sort keyword for PeriodIndex.join #16586
Changes from all commits
b50df63
0a13bdb
24b83f8
93ca23c
e45711f
25030fb
2aea2b5
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 |
---|---|---|
|
@@ -773,3 +773,9 @@ def test_map(self): | |
result = index.map(lambda x: x.ordinal) | ||
exp = Index([x.ordinal for x in index]) | ||
tm.assert_index_equal(result, exp) | ||
|
||
@pytest.mark.parametrize('how', ['outer', 'inner', 'left', 'right']) | ||
def test_join_self(self, how): | ||
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 this to tests/indexes/common.py using 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. added. Non-unique |
||
index = period_range('1/1/2000', periods=10) | ||
joined = index.join(index, how=how) | ||
assert index is joined |
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 also add the tests from the original issue (it was on PI) as a specific test.
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.
I mean this test here: #16541 (comment)
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.
do mean mean add the code that generated the issue as a test (joining two randomly generated 5x5 DataFrames)? I don't really understand what you're asking me to do.