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

FIX-#6201: align groupby objects signatures with pandas #6202

Merged
merged 7 commits into from
May 26, 2023

Conversation

anmyachev
Copy link
Collaborator

@anmyachev anmyachev commented May 24, 2023

What do these changes do?

  • first commit message and PR title follow format outlined here

    NOTE: If you edit the PR title to match this format, you need to add another commit (even if it's empty) or amend your last commit for the CI job that checks the PR title to pick up the new PR title.

  • passes flake8 modin/ asv_bench/benchmarks scripts/doc_checker.py
  • passes black --check modin/ asv_bench/benchmarks scripts/doc_checker.py
  • signed commit with git commit -s
  • Resolves Align groupby objects signatures with pandas #6201
  • tests added and passing
  • module layout described at docs/development/architecture.rst is up-to-date

Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
modin/pandas/groupby.py Fixed Show fixed Hide fixed
modin/pandas/groupby.py Fixed Show fixed Hide fixed
modin/pandas/groupby.py Fixed Show fixed Hide fixed
Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
@anmyachev anmyachev marked this pull request as ready for review May 25, 2023 13:47
@anmyachev anmyachev requested a review from a team as a code owner May 25, 2023 13:48
dchigarev
dchigarev previously approved these changes May 25, 2023
Copy link
Collaborator

@dchigarev dchigarev 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, left minor comments

modin/pandas/groupby.py Outdated Show resolved Hide resolved
Comment on lines 754 to 755
if engine is not None and engine_kwargs is not None:
return self._default_to_pandas(
Copy link
Collaborator

Choose a reason for hiding this comment

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

we should eventually do this for every method that can take the engine parameters, probably as a part of a separate PR sometime in the future

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I will do this right now.

Co-authored-by: Dmitry Chigarev <dmitry.chigarev@intel.com>
Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
@@ -278,12 +278,22 @@ def value_counts(
)
)

def mean(self, numeric_only=None):
def mean(self, numeric_only=no_default, engine="cython", engine_kwargs=None):
if engine not in ("cython", None) and engine_kwargs is not None:
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@dchigarev dchigarev merged commit d14abf4 into modin-project:master May 26, 2023
49 of 50 checks passed
@anmyachev anmyachev deleted the issue6032 branch May 30, 2023 09:17
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.

Align groupby objects signatures with pandas
2 participants