Oscar Wang commited on
Commit
f10edb2
·
verified ·
1 Parent(s): 49a4734

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.index.freq = freq
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):