Skip to content

Commit

Permalink
Add melt support when query-planning is enabled (#11088)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjzamora committed May 2, 2024
1 parent 5b0f20e commit 21f73cc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dask/dataframe/__init__.py
Expand Up @@ -132,6 +132,7 @@ def _dask_expr_enabled() -> bool:
isna,
map_overlap,
map_partitions,
melt,
merge,
merge_asof,
pivot_table,
Expand Down Expand Up @@ -175,7 +176,6 @@ def inner_func(*args, **kwargs):
return inner_func

_Frame = raise_not_implemented_error("_Frame") # type: ignore
melt = raise_not_implemented_error("melt")

# Due to the natural circular imports caused from dask-expr
# wanting to import things from dask.dataframe, this module's init
Expand Down
1 change: 0 additions & 1 deletion dask/dataframe/tests/test_multi.py
Expand Up @@ -1781,7 +1781,6 @@ def fix_index(out, dtype):
)


@pytest.mark.xfail(DASK_EXPR_ENABLED, reason="melt not supported yet")
@pytest.mark.parametrize(
"kwargs",
[
Expand Down
2 changes: 2 additions & 0 deletions docs/source/dataframe-api.rst
Expand Up @@ -72,6 +72,7 @@ DataFrame
DataFrame.mean
DataFrame.median
DataFrame.median_approximate
DataFrame.melt
DataFrame.memory_usage
DataFrame.memory_usage_per_partition
DataFrame.merge
Expand Down Expand Up @@ -549,6 +550,7 @@ Reshape DataFrames

get_dummies
pivot_table
melt

Concatenate DataFrames
~~~~~~~~~~~~~~~~~~~~~~
Expand Down

0 comments on commit 21f73cc

Please sign in to comment.