dask / dask-expr

BSD 3-Clause "New" or "Revised" License
79 stars 18 forks source link

Add support for ``DataFrame.melt`` #1049

Closed rjzamora closed 2 months ago

rjzamora commented 2 months ago

Closes https://github.com/dask/dask-expr/issues/1002 dask/dask component: https://github.com/dask/dask/pull/11088

I'm not really sure if melt has been left out of the API for a specific reason. This PR adds basic support using map_partitions.

rjzamora commented 2 months ago

Thanks for the review @phofl ! Sorry - Should have marked this as a draft. I was curious why melt was never added, and didn't want to bury too much time in a PR only to find out that there are deeper issues I didn't know about. If the answer is: "none of the guiding benchmarks/workflows seemed to need it", then I'll be happy to clean this up and make test coverage is thorough both here and in dask/dask.

phofl commented 2 months ago

thx