Skip to content

Consolidate memoryview handling in as_column#14643

Merged
rapids-bot[bot] merged 1 commit intorapidsai:branch-24.02from
mroeschke:ref/as_column/memoryview
Dec 18, 2023
Merged

Consolidate memoryview handling in as_column#14643
rapids-bot[bot] merged 1 commit intorapidsai:branch-24.02from
mroeschke:ref/as_column/memoryview

Conversation

@mroeschke
Copy link
Copy Markdown
Contributor

Description

Implemented @wence- 's suggestion in #14636 (comment)

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 16, 2023
@mroeschke mroeschke requested a review from a team as a code owner December 16, 2023 00:41
elif isinstance(arbitrary, cudf.Scalar):
data = ColumnBase.from_scalar(arbitrary, length if length else 1)
else:
if dtype is not None:
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This block is just unindented from a removed try/except

@mroeschke
Copy link
Copy Markdown
Contributor Author

/merge

@rapids-bot rapids-bot bot merged commit 90cccef into rapidsai:branch-24.02 Dec 18, 2023
@mroeschke mroeschke deleted the ref/as_column/memoryview branch December 18, 2023 17:55
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

None yet

Development

Successfully merging this pull request may close these issues.

2 participants