Skip to content

Commit 497ede8

Browse files
DOC: Add Notes about difference to numpy behaviour for ddof in std() GH35985 (#35986)
* DOC: Add Notes about difference to numpy behaviour for ddof. GH35985. * remove trailing whitespace. * Update pandas/core/generic.py wording change. Co-authored-by: Daniel Saxton <[email protected]> * Make wording simpler and remove reference to normalization. * Make wording simpler and remove reference to normalization. Co-authored-by: Daniel Saxton <[email protected]>
1 parent f3408ea commit 497ede8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pandas/core/generic.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -10832,7 +10832,12 @@ def _doc_parms(cls):
1083210832
1083310833
Returns
1083410834
-------
10835-
%(name1)s or %(name2)s (if level specified)\n"""
10835+
%(name1)s or %(name2)s (if level specified)
10836+
10837+
Notes
10838+
-----
10839+
To have the same behaviour as `numpy.std`, use `ddof=0` (instead of the
10840+
default `ddof=1`)\n"""
1083610841

1083710842
_bool_doc = """
1083810843
%(desc)s

0 commit comments

Comments
 (0)