Spaces:
Sleeping
Sleeping
Oscar Wang
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ def fetch_eth_price(period):
|
|
26 |
return None, None, None
|
27 |
|
28 |
data.index = pd.DatetimeIndex(data.index)
|
29 |
-
data.
|
30 |
return data, predict_steps, freq
|
31 |
|
32 |
def make_predictions(data, predict_steps, freq):
|
|
|
26 |
return None, None, None
|
27 |
|
28 |
data.index = pd.DatetimeIndex(data.index)
|
29 |
+
data = data.asfreq(freq) # Ensure the data has a consistent frequency
|
30 |
return data, predict_steps, freq
|
31 |
|
32 |
def make_predictions(data, predict_steps, freq):
|