Skip to content

REF: move mixed-dtype frame_apply check outside of _reduce try/except #32950

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 12 commits into from
Mar 30, 2020

Conversation

jbrockmendel
Copy link
Member

cc @jorisvandenbossche this is the same branch I linked the other day. Some variant of #32867 may make this irrelevant, but I don't think getting this improvement in the interim will make that any more difficult.

@jbrockmendel
Copy link
Member Author

I can't reproduce this test failure locally

@jorisvandenbossche
Copy link
Member

Maybe add a test specifically for the median of a dataframe with categorical columns, so it might be clearer what is wrong with that (as I suppose that is the reason that the fillna(df.median() is giving something else)

@jreback jreback added Clean Numeric Operations Arithmetic, Comparison, and Logical operations labels Mar 29, 2020
@jreback
Copy link
Contributor

jreback commented Mar 29, 2020

btw I think we simply need to create pandas.core.reduce, similiar to how we have pandas.core.apply to handle all of this logic. much easier to reason about in a separate module (and can easily break down / dispatch cases).

@jreback jreback added this to the 1.1 milestone Mar 30, 2020
@jreback jreback merged commit b838508 into pandas-dev:master Mar 30, 2020
@jreback
Copy link
Contributor

jreback commented Mar 30, 2020

thanks, pls note potential followon above...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Clean Numeric Operations Arithmetic, Comparison, and Logical operations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants