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