Skip to content

DOC: clean up DataFrame.ewm #31647

Closed
Closed
@MarcoGorelli

Description

@MarcoGorelli

A few issues I've noticed:

  1. It says

When adjust is False, weighted averages are calculated recursively as:

weighted_average[0] = arg[0]; weighted_average[i] = (1-alpha)*weighted_average[i-1] + alpha*arg[i].

but arg isn't defined

  1. The phrase "When adjust is False, weighted averages are calculated recursively as:" appears as bold, but I don't think this was the intention

\text{for} halflife > 0

should be

\text{for } halflife > 0
  1. In the "notes" section, alpha is used, while in the description of the parameters, it's
:math:`\alpha` 
  1. The respective doc for Series could be updated, as it says
axis{0 or ‘index’, 1 or ‘columns’}, default 0

Metadata

Metadata

Labels

DocsWindowrolling, ewma, expanding

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions