Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -258,7 +258,7 @@ if section == 'Data Quality':
|
|
| 258 |
|
| 259 |
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.')
|
| 260 |
|
| 261 |
-
yesterday_midnight = pd.Timestamp(datetime.
|
| 262 |
|
| 263 |
# Filter data until the end of yesterday (midnight)
|
| 264 |
data_quality = data[data.index <= yesterday_midnight]
|
|
|
|
| 258 |
|
| 259 |
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.')
|
| 260 |
|
| 261 |
+
yesterday_midnight = pd.Timestamp(datetime.now().date() - pd.Timedelta(days=1)).replace(hour=23, minute=59, second=59)
|
| 262 |
|
| 263 |
# Filter data until the end of yesterday (midnight)
|
| 264 |
data_quality = data[data.index <= yesterday_midnight]
|