Skip to content

CLN: Clean groupby ops from unreached code paths #48698

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

Merged
merged 2 commits into from
Sep 23, 2022

Conversation

phofl
Copy link
Member

@phofl phofl commented Sep 21, 2022

  • closes #xxxx (Replace xxxx with the Github issue number)
  • Tests added and passed if fixing a bug or adding a new feature
  • All code checks passed.
  • Added type annotations to new arguments/methods/functions.
  • Added an entry in the latest doc/source/whatsnew/vX.X.X.rst file if fixing a bug or adding a new feature.

We can't hit these code paths anymore

@@ -489,7 +451,9 @@ def _masked_ea_wrap_cython_operation(
)

if self.how == "ohlc":
result_mask = np.tile(result_mask, (4, 1)).T
result_mask = np.tile(
result_mask, (self._cython_arity.get(self.how, 1), 1)
Copy link
Member

Choose a reason for hiding this comment

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

nitpick can you get the arity in a separate line

@jbrockmendel
Copy link
Member

Nice!

@mroeschke mroeschke added this to the 1.6 milestone Sep 23, 2022
@mroeschke mroeschke merged commit fc9b62a into pandas-dev:main Sep 23, 2022
@mroeschke
Copy link
Member

Thanks @phofl

@phofl phofl deleted the cln_groupby_masked branch September 23, 2022 22:01
@mroeschke mroeschke modified the milestones: 1.6, 2.0 Oct 13, 2022
noatamir pushed a commit to noatamir/pandas that referenced this pull request Nov 9, 2022
* CLN: Clean groupby ops from unreached code paths

* Refactor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants