We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
[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.
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
Why is the value being updated when time hasn't elapsed yet?
pd.show_versions()
[paste the output of pd.show_versions() here leaving a blank line after the details tag]
The text was updated successfully, but these errors were encountered:
From the formula we're using (https://pandas.pydata.org/docs/user_guide/window.html#exponentially-weighted-window in the times section), when the timedelta is 0 the weights equal 1 and therefore the op acts like an expanding mean.
Sorry, something went wrong.
Going to close as I believe this is the expected behavior, but happy to reopen if I am missing something.
No branches or pull requests
[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
# Your code here
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]The text was updated successfully, but these errors were encountered: