Skip to content

REF/TYP: extract function/type args in describe.py #39165

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 14, 2021

Conversation

ivanovmg
Copy link
Member

@ivanovmg ivanovmg commented Jan 14, 2021

Extracted function _refine_percentiles and typed function arguments in pandas/core/describe.py.

@ivanovmg ivanovmg requested a review from jreback January 14, 2021 08:59
@@ -263,3 +251,35 @@ def describe_1d(data, percentiles, datetime_is_numeric, *, is_series) -> "Series
return describe_numeric_1d(data, percentiles)
else:
return describe_categorical_1d(data, is_series)


def _refine_percentiles(percentiles: Optional[Sequence[float]]) -> Sequence[float]:
Copy link
Contributor

Choose a reason for hiding this comment

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

these dont' need to be private but nbd

@jreback jreback added the Refactor Internal refactoring of code label Jan 14, 2021
@jreback jreback added this to the 1.3 milestone Jan 14, 2021
@jreback jreback merged commit 4ecba51 into pandas-dev:master Jan 14, 2021
@ivanovmg ivanovmg deleted the refactor/describe branch January 14, 2021 14:31
@ivanovmg
Copy link
Member Author

xref #37715

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