Skip to content

Commit

Permalink
drop na values on ingest
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaelicke committed Jul 9, 2024
1 parent 0ef29a8 commit 2f8e0a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ingestor.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def load_xarray_to_duckdb(entry: Entry, data: xr.Dataset) -> str:

# get a delayed dask dataframe
try:
ddf = data.to_dask_dataframe()[dimension_names]
ddf = data.to_dask_dataframe()[dimension_names].dropna()
except ValueError as e:
# check this is the chunking error
if 'Object has inconsistent chunks' in str(e):
Expand Down

0 comments on commit 2f8e0a9

Please sign in to comment.