We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent fbed1cf commit e2c5795Copy full SHA for e2c5795
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