Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
cudf-polars
string slicing #16082cudf-polars
string slicing #16082Changes from 26 commits
12a6b2c
2c33cf7
65e0011
a6e9ed2
e52079c
d455908
8e08880
5d223b8
c53d07a
8605bd2
866fefe
fb1a0a1
238a583
9d70bb2
78fe267
4e07bf5
4ada5c9
b690193
02072b0
45e2fc4
326c321
ed9b119
920a2e1
dcfa6c6
adcf5f8
a7c17cf
fdaa556
2628dde
cc2cc7c
27dfef8
9637636
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add a case where the computed start is negative and the computed stop is positive to ensure that does the right thing? e.g. suppose you have
(-3, 4)
, I think that will produce a start stop pair of[-3, 1)
which will be empty for long strings, whereas in polars it would slice fromstrlen - 3
to the end of the string.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added some logic for this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are these parametrizations different to those with columns above? As there, can we particularly add a case where the computed start is negative but the computed stop is non-negative (e.g.
(-3, 4)
or(-2, 2)
? I think those will not do the right thing.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merged these