Skip to content

ENH: EWM Sum? #13297

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

Closed
max-sixty opened this issue May 26, 2016 · 2 comments · Fixed by #43871
Closed

ENH: EWM Sum? #13297

max-sixty opened this issue May 26, 2016 · 2 comments · Fixed by #43871
Labels
Enhancement Window rolling, ewma, expanding
Milestone

Comments

@max-sixty
Copy link
Contributor

I think this would be just: .ewm(span).mean() * span

Now:

In [4]: pd.Series(range(10)).ewm(span=2).sum()
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-4-8e0e72f35eb3> in <module>()
----> 1 pd.Series(range(10)).ewm(span=2).sum()

/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pandas/core/window.py in __getattr__(self, attr)
    122 
    123         raise AttributeError("%r object has no attribute %r" %
--> 124                              (type(self).__name__, attr))
    125 
    126     def _dir_additions(self):

AttributeError: 'EWM' object has no attribute 'sum'

CC @erbian

@jreback
Copy link
Contributor

jreback commented May 27, 2016

is this common nomenclature?

@jreback jreback added Enhancement API Design Numeric Operations Arithmetic, Comparison, and Logical operations labels May 27, 2016
@max-sixty
Copy link
Contributor Author

I'm not sure tbh...

@jbrockmendel jbrockmendel added the Window rolling, ewma, expanding label Dec 11, 2019
@mroeschke mroeschke added Numeric Operations Arithmetic, Comparison, and Logical operations and removed Numeric Operations Arithmetic, Comparison, and Logical operations labels May 8, 2020
@mroeschke mroeschke removed API Design Numeric Operations Arithmetic, Comparison, and Logical operations labels May 1, 2021
@jreback jreback added this to the Contributions Welcome milestone Sep 27, 2021
@jreback jreback modified the milestones: Contributions Welcome, 1.4 Oct 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Window rolling, ewma, expanding
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants