Closed
Description
-
[yes ] I have checked that this issue has not already been reported.
-
[ yes] I have confirmed this bug exists on the latest version of pandas.
-
(optional) I have confirmed this bug exists on the master branch of pandas.
Note: Please read this guide detailing how to provide the necessary information for us to reproduce your bug.
Code Sample, a copy-pastable example
idx=pd.date_range('20000101','20201231')
idx2=[idx[0]]*5 + [idx[1]]*5
df=pd.DataFrame(data=range(10),index=idx2)
df.ewm(halflife=pd.Timedelta('1D'), times=df.index).mean()
# Your code here
0 | |
---|---|
0.000000 | |
0.500000 | |
1.000000 | |
1.500000 | |
2.000000 | |
2.857143 | |
3.555556 | |
4.181818 | |
4.769231 | |
5.333333 |
Problem description
Why is the value being updated when time hasn't elapsed yet?
Expected Output
Output of pd.show_versions()
[paste the output of pd.show_versions()
here leaving a blank line after the details tag]