Skip to content

Commit

Permalink
fix intersect test
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinzwang committed Dec 17, 2024
1 parent 4ba24ad commit 343ced0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/dataframe/test_intersect.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
def test_simple_intersect(make_df):
df1 = make_df({"foo": [1, 2, 3]})
df2 = make_df({"bar": [2, 3, 4]})
result = df1.intersect(df2)
result = df1.intersect(df2).sort(by="foo")
assert result.to_pydict() == {"foo": [2, 3]}


def test_intersect_with_duplicate(make_df):
df1 = make_df({"foo": [1, 2, 2, 3]})
df2 = make_df({"bar": [2, 3, 3]})
result = df1.intersect(df2)
result = df1.intersect(df2).sort(by="foo")
assert result.to_pydict() == {"foo": [2, 3]}


Expand Down

0 comments on commit 343ced0

Please sign in to comment.