-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
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
Conversation
|
||
|
||
def describe_numeric_1d(series, percentiles) -> "Series": | ||
from pandas import Series |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added docstrings.
|
||
|
||
def describe_numeric_1d(series, percentiles) -> "Series": | ||
"""Describe series containing numerical data. |
There was a problem hiding this comment.
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
thanks @ivanovmg |
Remove inner functions in
describe_ndframe
, while passing the required arguments.