Skip to content

Commit b7f3acf

Browse files
DOC: fix latex error build
1 parent 8161c85 commit b7f3acf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas/stats/moments.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
span : float, optional
7777
Specify decay in terms of span, :math:`\alpha = 2 / (span + 1)`
7878
halflife : float, optional
79-
Specify decay in terms of halflife, :math: `\alpha = 1 - exp(log(0.5) / halflife)`
79+
Specify decay in terms of halflife, :math:`\alpha = 1 - exp(log(0.5) / halflife)`
8080
min_periods : int, default 0
8181
Number of observations in sample to require (only affects
8282
beginning)
@@ -87,16 +87,16 @@
8787
imbalance in relative weightings (viewing EWMA as a moving average)
8888
"""
8989

90-
_ewm_notes = """
90+
_ewm_notes = r"""
9191
Notes
9292
-----
9393
Either center of mass or span must be specified
9494
95-
EWMA is sometimes specified using a "span" parameter s, we have have that the
95+
EWMA is sometimes specified using a "span" parameter `s`, we have that the
9696
decay parameter :math:`\alpha` is related to the span as
9797
:math:`\alpha = 2 / (s + 1) = 1 / (1 + c)`
9898
99-
where c is the center of mass. Given a span, the associated center of mass is
99+
where `c` is the center of mass. Given a span, the associated center of mass is
100100
:math:`c = (s - 1) / 2`
101101
102102
So a "20-day EWMA" would have center 9.5.

0 commit comments

Comments
 (0)