Stringency Index now NaN
nhartland opened this issue · 2 comments
Hi there,
First of all, many thanks for creating and maintaining this repo!
I've noticed that the stringency_index
field is now NaN for a lot of countries. From what I can see the Oxford API is still returning sensible values here, but checking the provided file oxford-government-response.json
I see lots of NaNs. This wasn't the case when I checked yesterday.
The effect can be clearly seen in the public BQ table:
SELECT
date,
country_name,
stringency_index
FROM
`bigquery-public-data.covid19_open_data.covid19_open_data`
WHERE
country_name = "France"
AND aggregation_level = 0
ORDER BY
date DESC
Is returning a long list of empty values for stringency_index.
Just as a follow up, I can only currently see stringency_index
in the JSON file for the following keys on the 15th April 2021:
'CA_AB', 'CA_MB', 'CA_NB', 'CA_NL', 'CA_NS', 'CA_NT', 'CA_QC',
'ES', 'FI', 'GA', 'GN', 'MR', 'NE', 'US_AK', 'US_AL', 'US_AR',
'US_CA', 'US_CO', 'US_DC', 'US_DE', 'US_GA', 'US_IA', 'US_ID',
'US_IL', 'US_IN', 'US_KS', 'US_LA', 'US_MA', 'US_MD', 'US_ME',
'US_MI', 'US_MN', 'US_MO', 'US_MT', 'US_NC', 'US_ND', 'US_NE',
'US_NH', 'US_NJ', 'US_NM', 'US_NV', 'US_NY', 'US_OH', 'US_OK',
'US_OR', 'US_RI', 'US_SD', 'US_TN', 'US_TX', 'US_UT', 'US_VA',
'US_WI', 'US_WY'
But checking the Oxford API with
curl https://covidtrackerapi.bsg.ox.ac.uk/api/v2/stringency/date-range/2021-04-15/2021-04-15
I can see a pretty complete record.
On checking again today I've noticed that the Oxford API is actually intermittently dropping data, so most likely
the problem source is there.
Reported at OxCGRT/covid-policy-tracker#87