Skip to content

Commit 33f2054

Browse files
committed
reduce line lengths to comply with pre-commit
1 parent 83fc74d commit 33f2054

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

pandas/core/window/numba_.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def ewm(
150150
# is to be used in conjunction with vals[i+1]
151151
old_wt *= old_wt_factor ** deltas[start + j - 1]
152152
if not adjust and com == 1:
153-
# update alpha "on the fly" for irregular-interval time series
153+
# update in case of irregular-interval time series
154154
new_wt = 1.0 - old_wt
155155
else:
156156
weighted = old_wt_factor * weighted
@@ -328,7 +328,7 @@ def ewm_table(
328328
# is to be used in conjunction with vals[i+1]
329329
old_wt[j] *= old_wt_factor ** deltas[i - 1]
330330
if not adjust and com == 1:
331-
# update alpha "on the fly" for irregular-interval time series
331+
# update in case of irregular-interval time series
332332
new_wt = 1.0 - old_wt[j]
333333
else:
334334
weighted[j] = old_wt_factor * weighted[j]

pandas/tests/window/test_ewm.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ def test_ewma_times_adjust_false_with_disallowed_com():
156156
# GH 54328
157157
with pytest.raises(
158158
NotImplementedError,
159-
match="None of com, span, or alpha can be specified if times is provided and adjust=False",
159+
match=("None of com, span, or alpha can be specified "
160+
"if times is provided and adjust=False"),
160161
):
161162
Series(range(1)).ewm(
162163
0.1,
@@ -170,7 +171,8 @@ def test_ewma_times_adjust_false_with_disallowed_alpha():
170171
# GH 54328
171172
with pytest.raises(
172173
NotImplementedError,
173-
match="None of com, span, or alpha can be specified if times is provided and adjust=False",
174+
match=("None of com, span, or alpha can be specified "
175+
"if times is provided and adjust=False"),
174176
):
175177
Series(range(1)).ewm(
176178
0.1,
@@ -185,7 +187,8 @@ def test_ewma_times_adjust_false_with_disallowed_span():
185187
# GH 54328
186188
with pytest.raises(
187189
NotImplementedError,
188-
match="None of com, span, or alpha can be specified if times is provided and adjust=False",
190+
match=("None of com, span, or alpha can be specified "
191+
"if times is provided and adjust=False"),
189192
):
190193
Series(range(1)).ewm(
191194
0.1,

0 commit comments

Comments
 (0)