Skip to content

Raise NotImplementedError for pd.SparseDtype - #13798

Merged
rapids-bot[bot] merged 6 commits into
NVIDIA:branch-23.10from
mroeschke:pandas/sparse/notimplemented
Aug 3, 2023
Merged

Raise NotImplementedError for pd.SparseDtype#13798
rapids-bot[bot] merged 6 commits into
NVIDIA:branch-23.10from
mroeschke:pandas/sparse/notimplemented

Conversation

@mroeschke

@mroeschke mroeschke commented Aug 1, 2023

Copy link
Copy Markdown
Contributor

Description

Currently cuDF seems to cast pd.SparseDtype to it's subtype instead of maintaining the sparse data type from pandas. Since pd.SparseDtype is not supported in cuDF, it is better to raise and tell users to cast directly to the sparse subtype

Checklist

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

As discussed with @shwina, this should raise in cuDF

@mroeschke
mroeschke requested a review from a team as a code owner August 1, 2023 23:08
@mroeschke
mroeschke requested review from bdice and isVoid August 1, 2023 23:08
@github-actions github-actions Bot added the Python Affects Python cuDF API. label Aug 1, 2023
@mroeschke mroeschke added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Aug 1, 2023

@bdice bdice left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please write a description for this PR, otherwise LGTM.

Comment thread python/cudf/cudf/tests/test_dataframe.py Outdated
Comment thread python/cudf/cudf/tests/test_dataframe.py Outdated
@mroeschke

Copy link
Copy Markdown
Contributor Author

Failures have been addressed now

@galipremsagar

Copy link
Copy Markdown
Contributor

/merge

@rapids-bot
rapids-bot Bot merged commit b7994bc into NVIDIA:branch-23.10 Aug 3, 2023
@mroeschke
mroeschke deleted the pandas/sparse/notimplemented branch August 3, 2023 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

3 participants