We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
clip
With Pandas and CPU Dask, I can do:
import pandas as pd import dask.dataframe as dd data = { "id": ["a", "b", "c", "d"], "score": [-0.5, 0.5, 4.5, 5.5] } pdf = pd.DataFrame(data) ddf = dd.from_pandas(pdf, npartitions=2) ddf["score"] = ( ddf["score"].clip(lower=0, upper=5).round().astype(int) )
which works as expected. However, with cuDF and Dask-cuDF:
import cudf import dask_cudf data = { "id": ["a", "b", "c", "d"], "score": [-0.5, 0.5, 4.5, 5.5] } cdf = cudf.DataFrame(data) ddf = dask_cudf.from_cudf(cdf, npartitions=2) ddf["score"] = ( ddf["score"].clip(lower=0, upper=5).round().astype(int) )
it fails with:
NotImplementedError: `axis is not yet supported in clip`
cc @VibhuJawa
The text was updated successfully, but these errors were encountered:
CC: @rjzamora
Sorry, something went wrong.
Fix Dask-cuDF clip APIs (#17509)
1e95864
Closes #17502 **Background Info**: The cudf and pandas `axis` defaults are different, and the upstream dask-expr `clip` APIs are consistent with the behavior of Pandas (not cudf). Authors: - Richard (Rick) Zamora (https://github.com/rjzamora) - Matthew Murray (https://github.com/Matt711) Approvers: - GALI PREM SAGAR (https://github.com/galipremsagar) URL: #17509
rjzamora
Successfully merging a pull request may close this issue.
With Pandas and CPU Dask, I can do:
which works as expected. However, with cuDF and Dask-cuDF:
it fails with:
cc @VibhuJawa
The text was updated successfully, but these errors were encountered: