Skip to content

Commit 48793cf

Browse files
committed
feat: add explode
1 parent ee8c162 commit 48793cf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

narwhals_daft/dataframe.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,12 +377,14 @@ def group_by(
377377
) -> DaftLazyGroupBy:
378378
return DaftLazyGroupBy(self, keys, drop_null_keys=drop_null_keys)
379379

380+
def explode(self, columns: Sequence[str]) -> DaftLazyFrame:
381+
return self._with_native(self.native.explode(*columns))
382+
380383
gather_every = not_implemented.deprecated(
381384
"`LazyFrame.gather_every` is deprecated and will be removed in a future version."
382385
)
383386
join_asof = not_implemented()
384387
tail = not_implemented.deprecated(
385388
"`LazyFrame.tail` is deprecated and will be removed in a future version."
386389
)
387-
explode = not_implemented()
388390
sink_parquet = not_implemented()

run_tests.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@
3030
"test_dt_to_string_iso_local_datetime_expr",
3131
"test_empty_scalar_reduction_with_columns",
3232
"test_explode_invalid_operation_error",
33-
"test_explode_multiple_cols",
3433
"test_explode_shape_error",
35-
"test_explode_single_col",
3634
"test_expr_binary",
3735
"test_expr_floordiv_by_zero",
3836
"test_expr_rfloordiv_by_zero",

0 commit comments

Comments
 (0)