Spaces:
Runtime error
Runtime error
Commit
·
2184cf1
1
Parent(s):
9fa0a4d
Update utils.py
Browse files
utils.py
CHANGED
|
@@ -1,15 +1,14 @@
|
|
| 1 |
|
| 2 |
def calc_seasonality(freq):
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
return "You didn't choose the correct frequency. Use: Y, Q, M, W and D"
|
|
|
|
| 1 |
|
| 2 |
def calc_seasonality(freq):
|
| 3 |
+
if freq == 'Y':
|
| 4 |
+
return 10
|
| 5 |
+
elif freq == 'Q':
|
| 6 |
+
return 4
|
| 7 |
+
elif freq == 'M':
|
| 8 |
+
return 12
|
| 9 |
+
elif freq == 'W':
|
| 10 |
+
return 4
|
| 11 |
+
elif freq == 'D':
|
| 12 |
+
return 7
|
| 13 |
+
else:
|
| 14 |
+
return "You didn't choose the correct frequency. Use: Y, Q, M, W and D"
|
|
|