ahuang11 commited on
Commit
ecac844
1 Parent(s): 46a7ea6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -455,7 +455,10 @@ class ClimateApp(pn.viewable.Viewer):
455
  def _update_oni_plot(self):
456
  df = self._oni_df
457
  df_year = df.loc[df["year"] == self.year]
458
- df_year.iloc[-1, -1] = 365
 
 
 
459
 
460
  overlay = hv.Overlay([])
461
  for oni in df_year["oni"].unique():
 
455
  def _update_oni_plot(self):
456
  df = self._oni_df
457
  df_year = df.loc[df["year"] == self.year]
458
+ try:
459
+ df_year.iloc[-1, -1] = 365
460
+ except:
461
+ pass
462
 
463
  overlay = hv.Overlay([])
464
  for oni in df_year["oni"].unique():