luisotorres commited on
Commit
bca0576
·
verified ·
1 Parent(s): b39e82b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -18,7 +18,7 @@ def analyze_and_visualize_straddle(ticker, strike_call, strike_put, premium_call
18
  """
19
 
20
  ## Downloading historical data
21
- df = yf.download(ticker)
22
 
23
  # Computing returns
24
  df['Returns'] = df['Adj Close'].pct_change()
 
18
  """
19
 
20
  ## Downloading historical data
21
+ df = yf.download(ticker, multi_level_index=False)
22
 
23
  # Computing returns
24
  df['Returns'] = df['Adj Close'].pct_change()