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

BUG: Increased support for subclassed types. #31331

Merged
merged 25 commits into from
May 10, 2020
Merged

BUG: Increased support for subclassed types. #31331

merged 25 commits into from
May 10, 2020

Conversation

EmilianoJordan
Copy link

  • closes #xxxx
  • tests added / passed
  • passes black pandas
  • passes git diff upstream/master -u -- "*.py" | flake8 --diff
  • whatsnew entry


df = tm.SubclassedDataFrame({"A": [1, 2, 3], "B": [4, 5, 6], "C": [7, 8, 9]})
result = df.idxmax()
assert isinstance(result, tm.SubclassedSeries)
Copy link
Member

Choose a reason for hiding this comment

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

this looks like it can be parametrized+shared with test_idxmin. if there are any others that can be parametrized, pls give it a try

@WillAyd
Copy link
Member

WillAyd commented Mar 25, 2020

@EmilianoJordan still active? Can you fix up and get green?

@jreback jreback added the Compat pandas objects compatability with Numpy or Python functions label Apr 21, 2020
@jreback jreback added this to the 1.1 milestone Apr 21, 2020
@jreback jreback merged commit 8f125f6 into pandas-dev:master May 10, 2020
@jreback
Copy link
Contributor

jreback commented May 10, 2020

thanks @EmilianoJordan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compat pandas objects compatability with Numpy or Python functions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants