Skip to content

Commit

Permalink
ENH: pass dtype parameter to CSV adapter from structure
Browse files Browse the repository at this point in the history
  • Loading branch information
genematx committed Nov 8, 2024
1 parent bfce5ff commit c00a2e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tiled/adapters/csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ def from_assets(

# Load the array lazily with Dask
file_paths = [path_from_uri(ast.data_uri) for ast in assets]
ddf = dask.dataframe.read_csv(file_paths, **kwargs)
ddf = dask.dataframe.read_csv(file_paths, dtype=structure.data_type.to_numpy_dtype(), **kwargs)

if isinstance(structure.data_type, StructDtype):
# Expecting a records array
Expand Down

0 comments on commit c00a2e9

Please sign in to comment.