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

ewma adjust incorrectly ticked for NaNs #2128

Lamarth opened this issue Oct 26, 2012 · 0 comments


Copy link

commented Oct 26, 2012

series = pandas.Series([1., numpy.NaN, numpy.NaN, 1.], index=pandas.DatetimeIndex(start='2000-01-01', periods=4, freq='T'))
pandas.ewma(series, com=5)

2000-01-01 00:00:00 1.000000
2000-01-01 00:01:00 0.545455
2000-01-01 00:02:00 0.545455
2000-01-01 00:03:00 1.000000

Almost right - but clearly the adjust factor is ticked in the wrong spot.

@wesm wesm closed this in 18788f4 Nov 4, 2012

joaonatali pushed a commit to joaonatali/pandas that referenced this issue Nov 10, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.