Skip to content

Commit

Permalink
Bring back necessary tolist call.
Browse files Browse the repository at this point in the history
  • Loading branch information
kklein committed Feb 13, 2025
1 parent dd9c07e commit 306a792
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].to_native()
return matrix_nw[rows.tolist()].to_native()
return matrix_nw[rows.tolist(), :].to_native()
return matrix[rows, :]

Expand Down

0 comments on commit 306a792

Please sign in to comment.