Skip to content

DOC: Add Notes about difference to numpy behaviour for ddof in std() GH35985 #35986

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

8 changes: 7 additions & 1 deletion pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -10859,7 +10859,13 @@ def _doc_parms(cls):

Returns
-------
%(name1)s or %(name2)s (if level specified)\n"""
%(name1)s or %(name2)s (if level specified)

Notes
-----
The default divisor (normalization) is different from numpy, which
by default normalizes by N. To have the same behaviour as numpy,
use ddof=0.\n"""

_bool_doc = """
%(desc)s
Expand Down