mmmapms commited on
Commit
fd22562
·
verified ·
1 Parent(s): 512361d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -211,7 +211,7 @@ if section == 'Data Quality':
211
 
212
  st.write('The table below presents the data quality metrics focusing on the percentage of missing values and the occurrence of extreme or nonsensical values for the selected country.')
213
 
214
- yesterday_midnight = pd.Timestamp(datetime.datetime.now().date() - pd.Timedelta(days=1)).replace(hour=23, minute=59, second=59)
215
 
216
  # Filter data until the end of yesterday (midnight)
217
  data_quality = data[data.index <= yesterday_midnight]
 
211
 
212
  st.write('The table below presents the data quality metrics focusing on the percentage of missing values and the occurrence of extreme or nonsensical values for the selected country.')
213
 
214
+ yesterday_midnight = pd.Timestamp(datetime.now().date() - pd.Timedelta(days=1)).replace(hour=23, minute=59, second=59)
215
 
216
  # Filter data until the end of yesterday (midnight)
217
  data_quality = data[data.index <= yesterday_midnight]