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

Validate and materialize iterators earlier in as_column #15739

Merged
merged 1 commit into from
May 14, 2024

Conversation

mroeschke
Copy link
Contributor

Description

closes #8796

I left a TODO in as_column to validate earlier that arbitrary is an iterable or sequence like if it wasn't a recognized array like (e.g. numpy array, pandas object, etc). Additionally, ensure we materialize iterators since there are some checks that would exhaust the object

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 May 13, 2024
@mroeschke mroeschke requested a review from a team as a code owner May 13, 2024 22:10
@mroeschke
Copy link
Contributor Author

/merge

@rapids-bot rapids-bot bot merged commit 4069c82 into rapidsai:branch-24.06 May 14, 2024
70 checks passed
@mroeschke mroeschke deleted the cln/as_column/iterator branch May 14, 2024 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improvement / enhancement to an existing function non-breaking Non-breaking change Python Affects Python cuDF API.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[FEA] Utility to carefully determine Iterable-like inputs for as_column
2 participants