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

Use instance over is_foo_dtype #14641

Merged
merged 16 commits into from
Jan 19, 2024

Conversation

mroeschke
Copy link
Contributor

Description

Similar to #14638, use isinstance when we know we are checking a dtype instance

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 15, 2023
@mroeschke mroeschke requested a review from a team as a code owner December 15, 2023 22:35
Copy link
Contributor

@vyasr vyasr left a comment

Choose a reason for hiding this comment

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

One suggested optimization, but looks good.

python/cudf/cudf/_lib/groupby.pyx Outdated Show resolved Hide resolved
@vyasr
Copy link
Contributor

vyasr commented Jan 19, 2024

/merge

@rapids-bot rapids-bot bot merged commit f785ed3 into rapidsai:branch-24.02 Jan 19, 2024
68 checks passed
@mroeschke mroeschke deleted the ref/is_foo_dtype branch January 19, 2024 18:18
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.

2 participants