danielle2003 commited on
Commit
8337ae8
·
verified ·
1 Parent(s): 2b2878e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -17,7 +17,7 @@ periods = n_years * 365
17
 
18
  @st.cache_data # Use st.cache_data instead of st.cache
19
  def load_data(ticker):
20
- data = yf.download(ticker, START, TODAY)
21
  data.reset_index(inplace=True)
22
  return data
23
 
 
17
 
18
  @st.cache_data # Use st.cache_data instead of st.cache
19
  def load_data(ticker):
20
+ data = yf.download(ticker, START, TODAY, multi_level_index=False)
21
  data.reset_index(inplace=True)
22
  return data
23