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

Replace is_bool_type with checking .dtype.kind #16255

Merged
merged 5 commits into from
Jul 16, 2024

Conversation

mroeschke
Copy link
Contributor

Description

It appears this was called when we already had a dtype object so can instead just simply check the .kind attribute

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 Jul 11, 2024
@mroeschke mroeschke requested a review from a team as a code owner July 11, 2024 18:26
@mroeschke mroeschke requested review from wence- and bdice July 11, 2024 18:26
@@ -840,10 +840,6 @@ def _get_row_major(
| tuple[Any, ...]
| list[tuple[Any, ...]],
) -> DataFrameOrSeries:
if pd.api.types.is_bool_dtype(
Copy link
Contributor Author

@mroeschke mroeschke Jul 11, 2024

Choose a reason for hiding this comment

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

While running the test suite locally, I didn't see this branch ever getting hit

@mroeschke
Copy link
Contributor Author

/merge

@rapids-bot rapids-bot bot merged commit beda22e into rapidsai:branch-24.08 Jul 16, 2024
79 checks passed
@mroeschke mroeschke deleted the ref/is_bool_type branch July 16, 2024 02:29
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