We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1369ec commit afa715dCopy full SHA for afa715d
financial/simple_moving_average.py
@@ -35,7 +35,9 @@ def simple_moving_average(
35
raise ValueError("Window size must be a positive integer")
36
37
if window_size > len(data):
38
- raise ValueError("Window size must be smaller than the total length of the time series")
+ raise ValueError(
39
+ "Window size must be smaller than the total length of the time series"
40
+ )
41
42
sma: list[float | None] = []
43
0 commit comments