Skip to content

Commit

Permalink
feat(dask): implement zeroifnull
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud authored and kszucs committed May 23, 2022
1 parent 403450c commit 38487db
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ibis/backends/dask/execution/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
execute_series_notnnull,
execute_sort_key_series_bool,
execute_table_column_df_or_df_groupby,
execute_zero_if_null_series,
)

# Many dask and pandas functions are functionally equivalent, so we just add
Expand Down Expand Up @@ -150,6 +151,13 @@
((dd.Series, simple_types), execute_node_nullif_series_scalar),
],
ops.Distinct: [((dd.DataFrame,), execute_distinct_dataframe)],
ops.ZeroIfNull: [
((dd.Series,), execute_zero_if_null_series),
(
(type(None), type(pd.NA), np.floating, float),
execute_zero_if_null_series,
),
],
}

register_types_to_dispatcher(execute_node, DASK_DISPATCH_TYPES)
Expand Down

0 comments on commit 38487db

Please sign in to comment.