Skip to content

Commit

Permalink
test(backends): fix pandas and dask tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Aug 26, 2024
1 parent 6e2c429 commit 7393c31
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ibis/backends/dask/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ def batting(lahman):
def sel_cols(batting):
cols = batting.columns
start, end = cols.index("AB"), cols.index("H") + 1
return ["playerID", "yearID", "teamID", "G"] + cols[start:end]
return ["playerID", "yearID", "teamID", "G", *cols[start:end]]


@pytest.fixture(scope="module")
Expand Down
2 changes: 1 addition & 1 deletion ibis/backends/dask/tests/test_arrays.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def test_array_collect_rolling_partitioned(t, df):
}
),
npartitions=1,
)[expr.columns]
)[list(expr.columns)]
tm.assert_frame_equal(
result.compute().reset_index(drop=True),
expected.compute().reset_index(drop=True),
Expand Down
2 changes: 1 addition & 1 deletion ibis/backends/pandas/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ def batting(lahman):
def sel_cols(batting):
cols = batting.columns
start, end = cols.index("AB"), cols.index("H") + 1
return ["playerID", "yearID", "teamID", "G"] + cols[start:end]
return ["playerID", "yearID", "teamID", "G", *cols[start:end]]


@pytest.fixture(scope="module")
Expand Down
2 changes: 1 addition & 1 deletion ibis/backends/pandas/tests/test_arrays.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def test_array_collect_rolling_partitioned(t, df):
"plain_int64": [1, 2, 3],
"collected": [[4.0], [4.0, 5.0], [5.0, 6.0]],
}
)[expr.columns]
)[list(expr.columns)]
tm.assert_frame_equal(result, expected)


Expand Down

0 comments on commit 7393c31

Please sign in to comment.