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

add Column.len, which returns Scalar, instead of Column.__len__ (returning int) #331

Merged
merged 2 commits into from
Dec 7, 2023

Conversation

MarcoGorelli
Copy link
Contributor

No description provided.

@kkraus14
Copy link
Collaborator

@shwina what is your thoughts on this one? I know cuDF is eager and so it always has the length of columns accessible, but given its scalar class is built to be on device (ignoring the internal implementation of how it handles both host and device access), do you have any thoughts here?

@shwina
Copy link
Contributor

shwina commented Nov 21, 2023

So I expect the length to be used for things like comparisons or equality checking which does work between Scalars and plain Python integers in cuDF. This should be an OK change

@MarcoGorelli
Copy link
Contributor Author

approved in today's call

@MarcoGorelli MarcoGorelli merged commit f57f47a into data-apis:main Dec 7, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants