Skip to content

ddof no longer passed for Series.std and Series.var #934

Closed
@dalejung

Description

@dalejung

As part of the following commit:

fbb1102#L5L799

Series.std and Series.var no longer pass along ddof to the nanops.nanvar function.

Also since ddof defaults to 1 in pandas and 0 in numpy.

arr = np.arange(10)
s = Series(arr)
# False
np.std(s) == np.std(arr)
# True
np.std(s) == np.std(arr, ddof=1)

Which I don't know if it's a bug but it's non-intuitive.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions