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

Make nan_as_null behavior consistent across all APIs #15692

Merged
merged 3 commits into from
May 8, 2024

Conversation

galipremsagar
Copy link
Contributor

Description

Fixes: #15679

This PR switches the default of nan_as_null to be False if pandas compatibility mode is turned on.

Forked from #14534

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 non-breaking Non-breaking change cudf.pandas Issues specific to cudf.pandas labels May 7, 2024
@galipremsagar galipremsagar self-assigned this May 7, 2024
@galipremsagar galipremsagar requested a review from a team as a code owner May 7, 2024 19:28
@github-actions github-actions bot added the Python Affects Python cuDF API. label May 7, 2024
@@ -3200,6 +3207,8 @@ def insert(self, loc, name, value, nan_as_null=None):
``null`` values.
If ``False``, leaves ``np.nan`` values as is.
"""
if nan_as_null is no_default:
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be in _insert instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I haven't touched _insert and other private APIs like column constructor because I felt having this handling in public APIs will just be sufficient.

@galipremsagar galipremsagar added the 5 - Ready to Merge Testing and reviews complete, ready to merge label May 8, 2024
@galipremsagar
Copy link
Contributor Author

/merge

@rapids-bot rapids-bot bot merged commit ab73b4c into rapidsai:branch-24.06 May 8, 2024
78 of 85 checks passed
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 bug Something isn't working cudf.pandas Issues specific to cudf.pandas non-breaking Non-breaking change Python Affects Python cuDF API.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[BUG] nan_as_null needs to be False by default when pandas-compatible mode is on
2 participants