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

Remove cudf._lib.transform in favor of inlining pylibcudf #17505

Merged
merged 7 commits into from
Dec 9, 2024

Conversation

mroeschke
Copy link
Contributor

Description

Contributes to #17317

Checklist

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

@mroeschke mroeschke added Python Affects Python cuDF API. improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Dec 4, 2024
@mroeschke mroeschke self-assigned this Dec 4, 2024
@mroeschke mroeschke requested a review from a team as a code owner December 4, 2024 04:09
@github-actions github-actions bot added the CMake CMake build issue label Dec 4, 2024
@@ -7883,6 +7881,16 @@ def interleave_columns(self):
)
return self._constructor_sliced._from_column(result_col)

@acquire_spill_lock()
def _compute_columns(self, expr: str) -> ColumnBase:
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggesting because it returns one column

Suggested change
def _compute_columns(self, expr: str) -> ColumnBase:
def _compute_column(self, expr: str) -> ColumnBase:

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, that makes sense. I'll incorporate this in another PR just to save a CI run

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 incorporated it in #17456

[*self._columns], self._column_names, statements[0]
)
)
return Series._from_column(self._compute_columns(statements[0]))
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
return Series._from_column(self._compute_columns(statements[0]))
return Series._from_column(self._compute_column(statements[0]))

for name, col in zip(targets, cols):
ret._data[name] = col
for name, expr in zip(targets, exprs):
ret._data[name] = self._compute_columns(expr)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
ret._data[name] = self._compute_columns(expr)
ret._data[name] = self._compute_column(expr)

@mroeschke
Copy link
Contributor Author

/merge

@rapids-bot rapids-bot bot merged commit 9df95d1 into rapidsai:branch-25.02 Dec 9, 2024
104 of 105 checks passed
@mroeschke mroeschke deleted the cudf/_lib/transform branch December 9, 2024 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CMake CMake build issue improvement Improvement / enhancement to an existing function non-breaking Non-breaking change Python Affects Python cuDF API.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants