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

Fix count API issue about ignoring nan values #17779

Merged
merged 7 commits into from
Jan 24, 2025

Conversation

galipremsagar
Copy link
Contributor

@galipremsagar galipremsagar commented Jan 22, 2025

Description

Fixes: #17768

This PR fixes the count api to match default dtype behavior where nan's are not counted as valid elements. But retains counting nan's as valid in non-pandas compatibility modes because that is what pandas nullable dtypes do.

Checklist

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

@galipremsagar galipremsagar added bug Something isn't working 3 - Ready for Review Ready for review by team Python Affects Python cuDF API. non-breaking Non-breaking change labels Jan 22, 2025
@galipremsagar galipremsagar self-assigned this Jan 22, 2025
@galipremsagar galipremsagar requested a review from a team as a code owner January 22, 2025 19:20
@galipremsagar galipremsagar changed the title Fix count API issue about ignoring nan values Fix count API issue about ignoring nan value Jan 22, 2025
@galipremsagar galipremsagar changed the title Fix count API issue about ignoring nan value Fix count API issue about ignoring nan values Jan 22, 2025
@galipremsagar
Copy link
Contributor Author

/merge

@rapids-bot rapids-bot bot merged commit db7f1e3 into rapidsai:branch-25.02 Jan 24, 2025
105 of 107 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 - Ready for Review Ready for review by team bug Something isn't working non-breaking Non-breaking change Python Affects Python cuDF API.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[BUG] Series.count incorrect results with cudf.pandas
2 participants