dibend commited on
Commit
da6b632
1 Parent(s): 45cf157

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -3
app.py CHANGED
@@ -20,9 +20,6 @@ def train_predict_wrapper(ticker, start_date, end_date, prediction_days):
20
  # Download stock data
21
  data = yf.download(ticker, start=start_date, end=end_date)
22
  data = data["Close"]
23
-
24
- # Convert dates to Unix timestamps
25
- data.index = data.index.to_timestamp()
26
 
27
  # Train linear regression model
28
  X = data.index.values[:-prediction_days].reshape(-1, 1)
 
20
  # Download stock data
21
  data = yf.download(ticker, start=start_date, end=end_date)
22
  data = data["Close"]
 
 
 
23
 
24
  # Train linear regression model
25
  X = data.index.values[:-prediction_days].reshape(-1, 1)