Skip to content

Commit

Permalink
switch head(0) to use _meta directly
Browse files Browse the repository at this point in the history
  • Loading branch information
dougbrn committed Jul 16, 2024
1 parent ae39e3a commit 5cf6320
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nested_dask/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ def count_nested(df, nested, by=None, join=True) -> NestedFrame:
# and second depending on join
if join:
# adds the meta onto the existing meta
meta = pd.concat([df.head(0), meta])
meta = pd.concat([df._meta, meta])

return df.map_partitions(lambda x: npd_utils.count_nested(x, nested, by=by, join=join), meta=meta)

0 comments on commit 5cf6320

Please sign in to comment.