Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ def create_dataset(dataset,time_step=15):
|
|
18 |
return np.array(x_ind),np.array(y_dep)
|
19 |
|
20 |
def stockprice(stockname,number_of_samples):
|
21 |
-
df_yahoo = yf.download(stockname,start='
|
22 |
df=df_yahoo
|
23 |
df.index.rename('Date', inplace=True)
|
24 |
df=df.sort_values(by=['Date'],ignore_index=True)
|
|
|
18 |
return np.array(x_ind),np.array(y_dep)
|
19 |
|
20 |
def stockprice(stockname,number_of_samples):
|
21 |
+
df_yahoo = yf.download(stockname,start='2023-01-01',end=date.today(),interval = "1h",progress=False,auto_adjust=True)
|
22 |
df=df_yahoo
|
23 |
df.index.rename('Date', inplace=True)
|
24 |
df=df.sort_values(by=['Date'],ignore_index=True)
|