Skip to content
New issue

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

Deprecate to/from_dask_dataframe APIs in dask-cudf #15592

Merged

Conversation

rjzamora
Copy link
Member

Description

The to/from_dask_dataframe APIs have been obsolete for a long time. It is always better to use ddf.to_backend("cudf") or ddf.to_backend("pandas") instead.

These APIs are also "dangerous" to use with dask-expr, because the same API names are still used to convert data to/from "legacy" Dask collections. Note that dask-expr also deprecated to/from_dask_dataframe in favor of to/from_legacy_dataframe, but the conflicting APIs still exist (for now).

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@rjzamora rjzamora added 2 - In Progress Currently a work in progress dask Dask issue improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Apr 24, 2024
@rjzamora rjzamora self-assigned this Apr 24, 2024
@github-actions github-actions bot added the Python Affects Python cuDF API. label Apr 24, 2024
@rjzamora rjzamora added 3 - Ready for Review Ready for review by team and removed 2 - In Progress Currently a work in progress labels Apr 24, 2024
@rjzamora rjzamora marked this pull request as ready for review April 24, 2024 15:47
@rjzamora rjzamora requested a review from a team as a code owner April 24, 2024 15:47
rapids-bot bot pushed a commit to rapidsai/cuml that referenced this pull request Apr 25, 2024
Minor notebook change. Motivated by rapidsai/cudf#15592

@taureandyernv - Just an FYI: I'm sure there is plenty of example code/documentation floating around that uses `dask_cudf.to/from_dask_dataframe`. I will be looking for this, and changing it to `*.to_backend("cudf"/"pandas")`. Feel free to point out problem areas :)

Authors:
  - Richard (Rick) Zamora (https://github.com/rjzamora)
  - Dante Gama Dessavre (https://github.com/dantegd)

Approvers:
  - Dante Gama Dessavre (https://github.com/dantegd)

URL: #5862
@rjzamora rjzamora added 4 - Needs Review Waiting for reviewer to review or respond and removed 3 - Ready for Review Ready for review by team labels Apr 26, 2024
python/dask_cudf/dask_cudf/core.py Outdated Show resolved Hide resolved
python/dask_cudf/dask_cudf/tests/test_core.py Outdated Show resolved Hide resolved
Copy link
Member

@charlesbluca charlesbluca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @rjzamora!

@rjzamora rjzamora added 5 - Ready to Merge Testing and reviews complete, ready to merge and removed 4 - Needs Review Waiting for reviewer to review or respond labels Apr 30, 2024
@rjzamora
Copy link
Member Author

/merge

@rapids-bot rapids-bot bot merged commit b9c6d4c into rapidsai:branch-24.06 Apr 30, 2024
70 checks passed
@rjzamora rjzamora deleted the deprecate-to-from-dask-dataframe branch April 30, 2024 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5 - Ready to Merge Testing and reviews complete, ready to merge dask Dask issue improvement Improvement / enhancement to an existing function non-breaking Non-breaking change Python Affects Python cuDF API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants