Skip to content

CLN: assorted, mostly typing #29419

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 8 commits into from
Nov 6, 2019
Merged

CLN: assorted, mostly typing #29419

merged 8 commits into from
Nov 6, 2019

Conversation

jbrockmendel
Copy link
Member

diff_2d no longer needs to be in the pxi.in file, so moved it to the pyx

A couple of recently-identified bugs in the groupby code are caused by passing incorrect types, so im getting more motivated to add annotations in/around the affected code.

@gfyoung gfyoung added Clean Internals Related to non-user accessible pandas implementation labels Nov 5, 2019
@@ -971,7 +972,7 @@ def _cython_agg_blocks(self, how, alt=None, numeric_only=True, min_count=-1):
locs = block.mgr_locs.as_array
try:
result, _ = self.grouper.aggregate(
block.values, how, axis=agg_axis, min_count=min_count
block.values, how, axis=1, min_count=min_count
Copy link
Member

@gfyoung gfyoung Nov 5, 2019

Choose a reason for hiding this comment

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

Interesting that we had essentially hardcoded this value all this time...

Copy link
Member

@gfyoung gfyoung left a comment

Choose a reason for hiding this comment

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

I think all of these changes look okay, but I also feel that this PR covers a little too much ground and could have benefited from being broken up into smaller parts (e.g. typing, Cython refactoring).

I somewhat on the fence, so would be good to get some other eyes to look at this.

@jbrockmendel
Copy link
Member Author

but I also feel that this PR covers a little too much ground and could have benefited from being broken up into smaller parts (e.g. typing, Cython refactoring

Totally reasonable. If others find this a deal-breaker I'll split this up. Otherwise I'll apply this advice in future CLN PRs

@jreback jreback added this to the 1.0 milestone Nov 6, 2019
@jreback
Copy link
Contributor

jreback commented Nov 6, 2019

this is ok, but generally yes would like to split largish changes. note to @WillAyd this might conflict with your groupby PR?

@jreback jreback merged commit fced5b1 into pandas-dev:master Nov 6, 2019
@jbrockmendel jbrockmendel deleted the cln9 branch November 6, 2019 18:19
Reksbril pushed a commit to Reksbril/pandas that referenced this pull request Nov 18, 2019
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Clean Internals Related to non-user accessible pandas implementation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants