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

Add support for level argument in any, all #833

Merged
merged 7 commits into from
Oct 18, 2019

Conversation

rliu4439
Copy link
Contributor

What do these changes do?

Refactored code supporting the level argument in count.

Added support for the level argument for:

  • any
  • all

Related issue number

  • passes flake8 modin
  • passes black --check modin
  • tests added and passing

Added support for level in:
*Any
*All
*Refactored count
*Added tests for Any and All
@codecov
Copy link

codecov bot commented Oct 15, 2019

Codecov Report

Merging #833 into master will increase coverage by <.01%.
The diff coverage is 90%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #833      +/-   ##
==========================================
+ Coverage   90.72%   90.72%   +<.01%     
==========================================
  Files          47       47              
  Lines        5658     5672      +14     
==========================================
+ Hits         5133     5146      +13     
- Misses        525      526       +1
Impacted Files Coverage Δ
modin/pandas/base.py 94.92% <90%> (-0.13%) ⬇️
modin/pandas/groupby.py 89.08% <0%> (+0.43%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0c74d25...93cad92. Read the comment docs.

Copy link
Collaborator

@devin-petersohn devin-petersohn left a comment

Choose a reason for hiding this comment

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

Thanks for putting this in! I left some comments for changes.

modin/pandas/base.py Outdated Show resolved Hide resolved
modin/pandas/base.py Outdated Show resolved Hide resolved
modin/pandas/base.py Outdated Show resolved Hide resolved
modin/pandas/base.py Outdated Show resolved Hide resolved
modin/pandas/base.py Show resolved Hide resolved
Updated functions to add keyword arguments to `_handle_level_agg`
Reformatting and adding skipna to calls to `handle_level_agg` in `all` and `any`
Copy link
Collaborator

@devin-petersohn devin-petersohn left a comment

Choose a reason for hiding this comment

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

Some nitpicky vertical whitespace comments, I will fix those.

modin/pandas/base.py Outdated Show resolved Hide resolved
modin/pandas/base.py Outdated Show resolved Hide resolved
modin/pandas/base.py Outdated Show resolved Hide resolved
modin/pandas/base.py Outdated Show resolved Hide resolved
modin/pandas/base.py Outdated Show resolved Hide resolved
modin/pandas/base.py Outdated Show resolved Hide resolved
modin/pandas/base.py Outdated Show resolved Hide resolved
modin/pandas/base.py Outdated Show resolved Hide resolved
modin/pandas/base.py Outdated Show resolved Hide resolved
@devin-petersohn
Copy link
Collaborator

@rliu4439 I do not have the privileges to add these. Can you add these suggested changes? You can do it in the browser.

devin-petersohn and others added 4 commits October 16, 2019 08:41
Update to check for `numeric_only` and not pass into _handle_level_agg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants