Nazhar commited on
Commit
a161ebc
·
verified ·
1 Parent(s): 24654bf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -551,7 +551,7 @@ with final_recs:
551
  for index, d in enumerate(rec_dates[:-1]): # iterate over the unique dates
552
  fr = recs[recs['Date'] == rec_dates[index+1]] # get data of the following day
553
  fr.reset_index(inplace=True, drop=True) # reset index
554
- following_price = fr['Price'][0 # get close price
555
  fp[d] = following_price # append dictionary
556
 
557
  # As no following day data is available for the latest date in the list, assign it 'Not Available'
 
551
  for index, d in enumerate(rec_dates[:-1]): # iterate over the unique dates
552
  fr = recs[recs['Date'] == rec_dates[index+1]] # get data of the following day
553
  fr.reset_index(inplace=True, drop=True) # reset index
554
+ following_price = fr['Price'][0] # get close price
555
  fp[d] = following_price # append dictionary
556
 
557
  # As no following day data is available for the latest date in the list, assign it 'Not Available'