Finalize the AI model
This commit is contained in:
@@ -17,8 +17,10 @@ def pull():
|
||||
for i, symbol in enumerate(tickers):
|
||||
df = yf.download(symbol, period="max", auto_adjust=True)
|
||||
if not df.empty:
|
||||
# Remove the ticker column
|
||||
# Remove the Horizontal ticker column
|
||||
df.columns = df.columns.get_level_values(0)
|
||||
# Add in the Vertical ticker column
|
||||
df['Ticker'] = symbol
|
||||
# add to master list
|
||||
all_data.append(df)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user