Skip to content

Commit 6ae2c63

Browse files
committed
default to no sort on join
1 parent c7c3e9f commit 6ae2c63

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pandas/tests/indexes/period/test_period.py

+6
Original file line numberDiff line numberDiff line change
@@ -773,3 +773,9 @@ def test_map(self):
773773
result = index.map(lambda x: x.ordinal)
774774
exp = Index([x.ordinal for x in index])
775775
tm.assert_index_equal(result, exp)
776+
777+
@pytest.mark.parametrize('how', ['outer', 'inner', 'left', 'right'])
778+
def test_join_self(self, how):
779+
index = period_range('1/1/2000', periods=10)
780+
joined = index.join(index, how=how)
781+
assert index is joined

0 commit comments

Comments
 (0)