Skip to content
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

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

Closed
dalejung opened this issue Mar 18, 2012 · 1 comment

Comments

@dalejung
Copy link
Contributor

commented Mar 18, 2012

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.

@wesm

This comment has been minimized.

Copy link
Member

commented Apr 2, 2012

fixed in PR #965 (will be part of pandas 0.7.3)

steveayers124 added a commit to steveayers124/pandas that referenced this issue Aug 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.