-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: Dataframe.skew invalid function signature for "skipna" #34063
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
Comments
Thanks @bf - are you interested in opening a pull request? |
@MarcoGorelli I'd love to create a PR, but I have trouble finding the proper source file. Could you help me find the root cause? I have found Line 10197 in dec736f
_make_stat_function() in Line 11139 in dec736f
skipna=None at Line 11161 in dec736f
But as Do you agree with this process? |
Thanks for taking a look Have just had a look at the source code for if skipna is None:
skipna = True TBH I don't understand why the default value is set to @simonjayhawkins would it be OK to change skipna=True and then remove the lines if skipna is None:
skipna = True so that in the documentation, the default value of True (from |
@bf Thanks for the report. the latest docs are at https://pandas.pydata.org/docs/dev/reference/api/pandas.DataFrame.skew.html The type annotations in the function signature are now removed to avoid this type of conflict with the paramater descriptions, see #33312 |
You are right, the issue exists also for other doc pages which use I imagine the |
@simonjayhawkins seems like we posted at the same time. Thanks for the fix and for your great work. |
I'll reopen, since even without the type annotations, the default is still shown as None |
@simonjayhawkins isn't this still present even without the type annotations? EDITsorry, commenting almost at the same again :) |
Not sure if I need to create a new issue, but in the docs for Maybe it makes sense to either call everything |
@bf that would be a separate issue |
Location of the documentation
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.skew.html
Documentation problem
In the function signature it says
skipna=None
even though the parameter documentation underneath saysskipna bool, default True
.Suggested fix for documentation
The
skipna=None
in function signature should be changed toskipna=True
.The text was updated successfully, but these errors were encountered: