Skip to content

Commit

Permalink
Stop publishing England UTLA confirmed case numbers since they don't …
Browse files Browse the repository at this point in the history
…include Pillar 2 tests (#67)
  • Loading branch information
tomwhite committed Jul 1, 2020
1 parent c2e5dd2 commit efc908f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ There is an *experimental* [Datasette instance](https://covid-19-uk-datasette-65

## News

* 1 July 2020. England UTLA confirmed case data is no longer being included since it doesn't have Pillar 2 tests, which make up the vast majority of tests.
* 1 July 2020. NI data is no longer being included since the (undocumented) backend API changed again, and the NI Department of Health does not provide a machine-readable alternative. (See 2 June 2020 entry below.)
* 30 June 2020. With the new Leicester lockdown, media attention around the lack of Pillar 2 data in England has increased. I have added a prominent warning to the top of this README.
* 2 June 2020. I received a reply from the NI Department of Health to my enquiry about making machine readable downloads available. For this reason I may stop collating NI data in this repository, since the JSON API the code uses is undocumented and changes from time-to-time. See https://github.com/tomwhite/covid-19-uk-data/issues/63.
Expand Down
13 changes: 7 additions & 6 deletions tools/crawl_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,13 @@ def total_confirmed_cases_utla_df(utla_code, utla):
df = df[["Date", "Country", "AreaCode", "Area", "TotalCases"]]
return df

all_cases_dfs = []
for utla_code in json_data["utlas"].keys():
cases = total_confirmed_cases_utla_df(utla_code, json_data["utlas"][utla_code]["name"]["value"])
all_cases_dfs.append(cases)
area_cases = pd.concat(all_cases_dfs, ignore_index=True)
save_cases_df_to_sqlite(area_cases, "England")
# Don't publish England UTLA confirmed case numbers since they don't include Pillar 2 data
# all_cases_dfs = []
# for utla_code in json_data["utlas"].keys():
# cases = total_confirmed_cases_utla_df(utla_code, json_data["utlas"][utla_code]["name"]["value"])
# all_cases_dfs.append(cases)
# area_cases = pd.concat(all_cases_dfs, ignore_index=True)
# save_cases_df_to_sqlite(area_cases, "England")


# Scotland historical test numbers
Expand Down

0 comments on commit efc908f

Please sign in to comment.