Skip to content

DOC: is confusing for ddof parameter of sem, var and std functions #18903

Closed
@recontemplator

Description

@recontemplator

pandas/pandas/core/generic.py

Lines 7160 to 7161 in 7bb204a

ddof : int, default 1
degrees of freedom

It states that ddof is for degrees of freedom with default value of 1. But actually it is for "Delta degrees-of-freedom" (even the name of the parameter is abbreviation of that definition). The meaning is: how many degrees of freedom to adjust relative to the population size. Default of 1 - means we need to adjust by one, not use one as a value of degrees of freedom (thats makes no sense). All functions are worked as expected, but documentation on ddof parameter is confusing.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions