Skip to content

DOC: fixup formula for exponentially weighted mean with input vector of times? #40327

Closed
@MarcoGorelli

Description

@MarcoGorelli

Location of the documentation

https://pandas.pydata.org/docs/user_guide/window.html#exponentially-weighted-window

Documentation problem

Currently, it reads

image

However, I don't understand why the denominator doesn't also sum over time, as is shown in the general formula at the beginning of the section:

image

Suggested fix for documentation

image


I haven't done much windowing at all, so this may very well be me misunderstanding something

cc @mroeschke in #40099 , then if the timedelta is zero, then I think the current formula would give an expanding sum rather than an expanding mean

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions