Skip to content

REF: share GroupBy.count #43519

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 1 commit into from
Sep 12, 2021
Merged

Conversation

jbrockmendel
Copy link
Member

  • closes #xxxx
  • tests added / passed
  • Ensure all linting tests pass, see here for how to run them
  • whatsnew entry

ids, _, ngroups = self.grouper.group_info
mask = ids != -1

def hfunc(bvalues: ArrayLike) -> ArrayLike:
Copy link
Contributor

Choose a reason for hiding this comment

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

this looking like a pretty generic function and could be factored out (followon)

@jreback jreback added Groupby Refactor Internal refactoring of code labels Sep 12, 2021
@jreback jreback added this to the 1.4 milestone Sep 12, 2021
@jreback jreback merged commit b3a7292 into pandas-dev:master Sep 12, 2021
@jbrockmendel jbrockmendel deleted the ref-share-count branch September 12, 2021 15:02
AlexeyGy pushed a commit to AlexeyGy/pandas that referenced this pull request Sep 13, 2021
AlexeyGy pushed a commit to AlexeyGy/pandas that referenced this pull request Sep 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Groupby Refactor Internal refactoring of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants