Skip to content

REF: eliminate inner functions in describe #39121

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 2 commits into from
Jan 13, 2021

Conversation

ivanovmg
Copy link
Member

Remove inner functions in describe_ndframe, while passing the required arguments.



def describe_numeric_1d(series, percentiles) -> "Series":
from pandas import Series
Copy link
Contributor

Choose a reason for hiding this comment

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

move imports to the top

Copy link
Contributor

Choose a reason for hiding this comment

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

ideally add doc-strings where you can

Copy link
Member Author

Choose a reason for hiding this comment

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

Added docstrings.

@jreback jreback added the Refactor Internal refactoring of code label Jan 12, 2021
@jreback jreback added this to the 1.3 milestone Jan 13, 2021


def describe_numeric_1d(series, percentiles) -> "Series":
"""Describe series containing numerical data.
Copy link
Contributor

Choose a reason for hiding this comment

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

next passes can you type args if possible

@jreback jreback merged commit dba7641 into pandas-dev:master Jan 13, 2021
@jreback
Copy link
Contributor

jreback commented Jan 13, 2021

thanks @ivanovmg

@ivanovmg ivanovmg deleted the refactor/describe branch January 14, 2021 07:07
luckyvs1 pushed a commit to luckyvs1/pandas that referenced this pull request Jan 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Refactor Internal refactoring of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants