Skip to content

CLN: Don't catch TypeError in FrameApply.agg #40543

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 6 commits into from
Mar 26, 2021

Conversation

rhshadrach
Copy link
Member

@rhshadrach rhshadrach commented Mar 20, 2021

  • tests added / passed
  • Ensure all linting tests pass, see here for how to run them

Ref: #34224. Back when transform and agg shared code, this was introduced to stop transform from having an infinite recursive loop. Now they do not, it is no longer necessary and only serves to obfusticate the error message.

@rhshadrach rhshadrach added Error Reporting Incorrect or improved errors from pandas Clean Apply Apply, Aggregate, Transform, Map labels Mar 20, 2021
Copy link
Member

@jbrockmendel jbrockmendel left a comment

Choose a reason for hiding this comment

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

LGTM (assuming CI failures are unrelated)

…g_frame_no_try

� Conflicts:
�	pandas/core/apply.py
…_no_try

# Conflicts:
#	pandas/tests/apply/test_invalid_arg.py
@rhshadrach
Copy link
Member Author

@jbrockmendel - merged master CI is now green except code coverage, which appears incorrect to me. Throwing a raise ValueError just above the untested lines fails 385 tests in tests.apply.

Copy link
Member

@jbrockmendel jbrockmendel left a comment

Choose a reason for hiding this comment

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

LGTM cc @jreback

@jreback jreback added this to the 1.3 milestone Mar 26, 2021
@jreback jreback merged commit 7c71498 into pandas-dev:master Mar 26, 2021
@jreback
Copy link
Contributor

jreback commented Mar 26, 2021

thanks @rhshadrach

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Apply Apply, Aggregate, Transform, Map Clean Error Reporting Incorrect or improved errors from pandas
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants