Skip to content

Commit

Permalink
usecols is a list of strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt711 committed Nov 26, 2024
1 parent 187a43f commit 31d1212
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions python/cudf_polars/cudf_polars/dsl/ir.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,10 +493,7 @@ def do_evaluate(
options.set_header(header)
options.set_dtypes(schema)
if usecols is not None:
if all(isinstance(col, int) for col in usecols):
options.set_use_cols_indexes(list(usecols))
else:
options.set_use_cols_names([str(name) for name in usecols])
options.set_use_cols_names([str(name) for name in usecols])
options.set_na_values(null_values)
if comment is not None:
options.set_comment(comment)
Expand Down

0 comments on commit 31d1212

Please sign in to comment.