Skip to content

Commit

Permalink
Fix test.
Browse files Browse the repository at this point in the history
  • Loading branch information
kklein committed Feb 13, 2025
1 parent 306a792 commit 284d595
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metalearners/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def index_matrix(matrix: Matrix, rows: Vector) -> Matrix:
if is_into_dataframe(matrix):
matrix_nw = nw.from_native(matrix) # type: ignore
if rows.dtype == "bool":
return matrix_nw[rows.tolist()].to_native()
return matrix_nw.filter(rows.tolist()).to_native()
return matrix_nw[rows.tolist(), :].to_native()
return matrix[rows, :]

Expand Down

0 comments on commit 284d595

Please sign in to comment.