Skip to content

Commit 746d196

Browse files
authored
test(typing): fix DataFrame.sort_values overload match (#2109)
Resolves #2108 (comment)
1 parent 005b6d5 commit 746d196

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/hypothesis/join_test.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,12 @@ def test_join( # pragma: no cover
6969

7070
dframe_pd1 = nw.to_native(dframe_pl).to_pandas()
7171
dframe_pd1 = dframe_pd1.sort_values(
72-
by=dframe_pd1.columns.to_list(), ignore_index=True
72+
by=dframe_pd1.columns.to_list(), ignore_index=True, inplace=False
7373
)
7474

7575
dframe_pd2 = nw.to_native(dframe_pd)
7676
dframe_pd2 = dframe_pd2.sort_values(
77-
by=dframe_pd2.columns.to_list(), ignore_index=True
77+
by=dframe_pd2.columns.to_list(), ignore_index=True, inplace=False
7878
)
7979

8080
assert_frame_equal(dframe_pd1, dframe_pd2)
@@ -114,12 +114,12 @@ def test_cross_join( # pragma: no cover
114114

115115
dframe_pd1 = nw.to_native(dframe_pl).to_pandas()
116116
dframe_pd1 = dframe_pd1.sort_values(
117-
by=dframe_pd1.columns.to_list(), ignore_index=True
117+
by=dframe_pd1.columns.to_list(), ignore_index=True, inplace=False
118118
)
119119

120120
dframe_pd2 = nw.to_native(dframe_pd)
121121
dframe_pd2 = dframe_pd2.sort_values(
122-
by=dframe_pd2.columns.to_list(), ignore_index=True
122+
by=dframe_pd2.columns.to_list(), ignore_index=True, inplace=False
123123
)
124124

125125
assert_frame_equal(dframe_pd1, dframe_pd2)

0 commit comments

Comments
 (0)