Skip to content

Support cudf-polars str.reverse #19117

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

Open
wants to merge 2 commits into
base: branch-25.08
Choose a base branch
from

Conversation

brandon-b-miller
Copy link
Contributor

Closes #19025.

needs: pylibcudf tests, docs

@brandon-b-miller brandon-b-miller added feature request New feature or request non-breaking Non-breaking change labels Jun 7, 2025
@brandon-b-miller brandon-b-miller requested review from a team as code owners June 7, 2025 00:43
@github-actions github-actions bot added Python Affects Python cuDF API. CMake CMake build issue cudf.polars Issues specific to cudf.polars pylibcudf Issues specific to the pylibcudf package labels Jun 7, 2025
@GPUtester GPUtester moved this to In Progress in cuDF Python Jun 7, 2025
Copy link
Member

@mhaseeb123 mhaseeb123 left a comment

Choose a reason for hiding this comment

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

Approving trivial cmake changes

Comment on lines +1 to +13
# Copyright (c) 2020-2025, NVIDIA CORPORATION.
from libc.stdint cimport int32_t
from libcpp.memory cimport unique_ptr
from libcpp.string cimport string
from pylibcudf.exception_handler cimport libcudf_exception_handler
from pylibcudf.libcudf.column.column cimport column
from pylibcudf.libcudf.column.column_view cimport column_view
from pylibcudf.libcudf.scalar.scalar cimport string_scalar
from pylibcudf.libcudf.types cimport size_type


cdef extern from "cudf/strings/reverse.hpp" namespace "cudf::strings" nogil:
cdef unique_ptr[column] reverse(column_view source_strings)
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
# Copyright (c) 2020-2025, NVIDIA CORPORATION.
from libc.stdint cimport int32_t
from libcpp.memory cimport unique_ptr
from libcpp.string cimport string
from pylibcudf.exception_handler cimport libcudf_exception_handler
from pylibcudf.libcudf.column.column cimport column
from pylibcudf.libcudf.column.column_view cimport column_view
from pylibcudf.libcudf.scalar.scalar cimport string_scalar
from pylibcudf.libcudf.types cimport size_type
cdef extern from "cudf/strings/reverse.hpp" namespace "cudf::strings" nogil:
cdef unique_ptr[column] reverse(column_view source_strings)
# Copyright (c) 2025, NVIDIA CORPORATION.
from libcpp.memory cimport unique_ptr
from pylibcudf.exception_handler cimport libcudf_exception_handler
from pylibcudf.libcudf.column.column cimport column
from pylibcudf.libcudf.column.column_view cimport column_view
cdef extern from "cudf/strings/reverse.hpp" namespace "cudf::strings" nogil:
cdef unique_ptr[column] reverse(column_view source_strings) except +libcudf_exception_handler

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CMake CMake build issue cudf.polars Issues specific to cudf.polars 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: In Progress
Development

Successfully merging this pull request may close these issues.

[FEA] Support polars.Expr.str.reverse in cudf-polars
3 participants