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

REGR: Groupby methods not supporting numba raising TypeError when the… #55586

Merged
merged 3 commits into from Oct 25, 2023

Conversation

lithomas1
Copy link
Member

@lithomas1 lithomas1 commented Oct 19, 2023

… global option is set

@lithomas1 lithomas1 added the Regression Functionality that used to work in a prior pandas version label Oct 19, 2023
@lithomas1 lithomas1 added this to the 2.1.2 milestone Oct 19, 2023
Copy link
Member

@mroeschke mroeschke left a comment

Choose a reason for hiding this comment

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

Looks good. Curious if groupby transform has this same issue?

@rhshadrach rhshadrach added Groupby numba numba-accelerated operations labels Oct 19, 2023
@lithomas1
Copy link
Member Author

Looks good. Curious if groupby transform has this same issue?

Nope, we don't have numba support implemented for transforms.

Comment on lines 242 to 245
# (if engine is None, the called function will handle the case where
# numba is requested via the global option)
kwargs["engine"] = engine
kwargs["engine_kwargs"] = engine_kwargs
Copy link
Member

Choose a reason for hiding this comment

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

If engine is None and engine_kwargs is not None, don't the engine_kwargs end up getting ignored here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah, I see.

The solution would be to always pass engine_kwargs then?
Since the user has to explicitly do this, then it would be their fault then if they pass in engine_kwargs to a function that doesn't support it.

Copy link
Member

Choose a reason for hiding this comment

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

As long as engine_kwargs is not None, yes, that sounds right to me.

@mroeschke mroeschke merged commit d6aea32 into pandas-dev:main Oct 25, 2023
39 checks passed
@mroeschke
Copy link
Member

Thanks @lithomas1

meeseeksmachine pushed a commit to meeseeksmachine/pandas that referenced this pull request Oct 25, 2023
lithomas1 added a commit that referenced this pull request Oct 25, 2023
…ing numba raising TypeError when the…) (#55686)

Backport PR #55586: REGR: Groupby methods not supporting numba raising TypeError when the…

Co-authored-by: Thomas Li <47963215+lithomas1@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Groupby numba numba-accelerated operations Regression Functionality that used to work in a prior pandas version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: TypeError: GroupBy.first() got an unexpected keyword argument 'engine'
3 participants