-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: Removed numeric_only parameter from pd.DataFrame.mad docs #31641
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
r0cketr1kky
commented
Feb 4, 2020
- closes DOC: mad description incorrectly includes 'numeric_only' #29079
pandas/core/generic.py
Outdated
@@ -10315,10 +10315,6 @@ def _doc_parms(cls): | |||
level : int or level name, default None | |||
If the axis is a MultiIndex (hierarchical), count along a | |||
particular level, collapsing into a %(name1)s. | |||
numeric_only : bool, default None |
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.
Removing this will remove numeric_only
for all other statistical function that actually accept numeric_only
. We only want to remove this for mad
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.
Makes sense...I shall correct my mistake. Thank you for guiding me @mroeschke
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.
Please review this commit!
pandas/core/generic.py
Outdated
---------- | ||
axis : %(axis_descr)s | ||
Axis for the function to be applied on. | ||
skipna : bool, default True |
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.
Thanks @r0cketr1kky
Isn't the default for skipna
None
rather than True
?
def mad(self, axis=None, skipna=None, level=None):
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.
Yes, you're right. I will change this too.
pandas/core/generic.py
Outdated
**kwargs | ||
Additional keyword arguments to be passed to the function. |
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.
Does this function accept kwargs?
def mad(self, axis=None, skipna=None, level=None):
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.
No, it doesn't. I will remove this as well.
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.
I've updated the file. Please review it!
Please review this @MarcoGorelli @mroeschke |
I think it's fine, could you include a screenshot of the documentation? Inside the
|
@r0cketr1kky you'll need to build the c extensions: https://pandas-docs.github.io/pandas-docs-travis/development/contributing.html#creating-a-python-environment |
Documentation screenshot @MarcoGorelli : P.S. Thanks for the link @mroeschke . This helped me. |
Please review this! |
How long does it take to merge this PR? |
@r0cketr1kky I don't have write-access to the repo, and I presume that those who do are prioritising other work. Please be patient, I'm pretty sure this will get merged |
Sure, thanks a lot for assisting me! |
thanks @r0cketr1kky if you'd canvas the other operations that use |
Ahh I just saw this comment @jreback I'm having a busy semester :( |