From c00a2e97e975c01a267d959aaa22029a13277b6a Mon Sep 17 00:00:00 2001 From: Eugene M Date: Fri, 8 Nov 2024 11:02:22 -0500 Subject: [PATCH] ENH: pass dtype parameter to CSV adapter from structure --- tiled/adapters/csv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tiled/adapters/csv.py b/tiled/adapters/csv.py index ce7f3fc89..88e118594 100644 --- a/tiled/adapters/csv.py +++ b/tiled/adapters/csv.py @@ -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