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

Implement replace in pylibcudf #15005

Merged
merged 7 commits into from
Feb 8, 2024

Conversation

vyasr
Copy link
Contributor

@vyasr vyasr commented Feb 8, 2024

Description

Contributes to #13921

Checklist

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

@vyasr vyasr added feature request New feature or request non-breaking Non-breaking change labels Feb 8, 2024
@vyasr vyasr self-assigned this Feb 8, 2024
@vyasr vyasr requested a review from a team as a code owner February 8, 2024 01:25
@vyasr vyasr requested review from wence- and mroeschke February 8, 2024 01:25
@github-actions github-actions bot added Python Affects Python cuDF API. CMake CMake build issue labels Feb 8, 2024
Column source_column,
Scalar lo,
Scalar hi,
Scalar lo_replace=*,
Copy link
Contributor

Choose a reason for hiding this comment

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

What does this =* syntax mean? This doesn't seem like anything I've seen in Python, C++, or Cython before.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the standard Cython syntax for default arguments in pxd files. The actual default value must be specified in the implementation (the pyx file) while the declaration just indicates that a default exists so that callers know what valid invocations look like. We have this in a couple of places in our existing Cython like column.pxd and scalar.pxd

@vyasr
Copy link
Contributor Author

vyasr commented Feb 8, 2024

/merge

@rapids-bot rapids-bot bot merged commit 7294280 into rapidsai:branch-24.04 Feb 8, 2024
68 checks passed
@vyasr vyasr deleted the feat/pylibcudf_replace branch February 8, 2024 22:55
@vyasr vyasr added the pylibcudf Issues specific to the pylibcudf package label May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CMake CMake build issue feature request New feature or request non-breaking Non-breaking change pylibcudf Issues specific to the pylibcudf package Python Affects Python cuDF API.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants