Skip to content

Commit cd2c7a5

Browse files
committed
ruff checks updated
1 parent 53ac271 commit cd2c7a5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pandas/core/groupby/groupby.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3848,7 +3848,8 @@ def ewm(self, *args, **kwargs) -> ExponentialMovingWindowGroupby:
38483848
One and only one of ``com``, ``span``, ``halflife``, or ``alpha`` must
38493849
be provided.
38503850
alpha : float, optional
3851-
Specify the smoothing factor :math:`\\alpha` directly, where :math:`0 < \\alpha \\leq 1`.
3851+
Specify the smoothing factor :math:`\\alpha` directly,
3852+
where :math:`0 < \\alpha \\leq 1`.
38523853
One and only one of ``com``, ``span``, ``halflife``, or ``alpha`` must
38533854
be provided.
38543855
min_periods : int, default 0
@@ -3875,11 +3876,9 @@ def ewm(self, *args, **kwargs) -> ExponentialMovingWindowGroupby:
38753876
-----
38763877
Each group is treated independently, and the exponential weighted calculations
38773878
are applied separately to each group.
3878-
38793879
When ``adjust=True``, weighted averages are calculated using weights
38803880
:math:`w_i = (1-\\alpha)^i` where :math:`i` is the number of periods from the
38813881
observations being weighted to the current period.
3882-
38833882
When ``adjust=False``, the calculation follows the recursive formula:
38843883
:math:`y_t = (1 - \\alpha) y_{t-1} + \\alpha x_t`.
38853884

0 commit comments

Comments
 (0)