-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: added examples to DataFrame.std #44226
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
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 @ruankie
Content looks good, you just need to fix up linting, see https://pandas.pydata.org/docs/development/contributing_documentation.html#updating-a-pandas-docstring
Can you address #44167 (comment) please?
@MarcoGorelli |
Cool, thanks! Can you also try building the docs for these methods and posting a screenshot? e.g.
|
Thanks, @MarcoGorelli. I am having trouble building the docs locally. I have tried creating a development environment using Docker. However, when I run
|
you need to rebuild the C extensions
|
Great, it worked thanks @MarcoGorelli. When opening The way I included my examples were to add the @doc(
_num_ddof_doc,
desc="Return sample standard deviation over requested axis."
"\n\nNormalized by N-1 by default. This can be changed using the "
"ddof argument.",
name1=name1,
name2=name2,
axis_descr=axis_descr,
notes=_std_notes,
examples=_std_examples,
)
def std(
self,
axis=None,
skipna=True,
level=None,
ddof=1,
numeric_only=None,
**kwargs,
): With the Thanks. |
I think you'll want a substitution, if you check other docstrings which do these substitutions there's probably something like |
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.
Good job, thanks! Couple of nitpicks, then good to go (EDIT: see futher review below)
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 @ruankie happy to take a followup for .var to close this issue out. |
xref #44162