{"id":43121578,"url":"https://github.com/codeforkjeff/covid-19-stats","last_synced_at":"2026-01-31T19:37:23.300Z","repository":{"id":37883758,"uuid":"250132423","full_name":"codeforkjeff/covid-19-stats","owner":"codeforkjeff","description":"COVID-19 Stats","archived":false,"fork":false,"pushed_at":"2024-01-19T21:11:19.000Z","size":5597,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-03-15T19:57:45.583Z","etag":null,"topics":["covid","covid-19","covid-19-us"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codeforkjeff.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-26T01:32:08.000Z","updated_at":"2024-03-15T19:57:45.583Z","dependencies_parsed_at":"2023-01-23T22:02:08.786Z","dependency_job_id":null,"html_url":"https://github.com/codeforkjeff/covid-19-stats","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codeforkjeff/covid-19-stats","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeforkjeff%2Fcovid-19-stats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeforkjeff%2Fcovid-19-stats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeforkjeff%2Fcovid-19-stats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeforkjeff%2Fcovid-19-stats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codeforkjeff","download_url":"https://codeload.github.com/codeforkjeff/covid-19-stats/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeforkjeff%2Fcovid-19-stats/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28951703,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T18:30:42.805Z","status":"ssl_error","status_checked_at":"2026-01-31T18:30:19.593Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["covid","covid-19","covid-19-us"],"created_at":"2026-01-31T19:37:23.229Z","updated_at":"2026-01-31T19:37:23.287Z","avatar_url":"https://github.com/codeforkjeff.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# COVID-19-stats\n\nExperimentation with COVID-19 data. You shouldn't use this for anything\nexcept satisfying your personal curiosity.\n\nWhat's in this repo:\n- ELT for cleaning COVID-19 data from various sources and transforming it into dimensional models\n- web interfaces for viewing the data in various ways\n\n(Note: on 11/14/2020, I removed the large output files that were being\ncommitted daily (ugh) from the repo's history, reducing its size by a few\nhundred megabytes. If you have been tracking this project, it's a good\nidea to do a fresh clone from scratch.)\n\n# How to Run This\n\nCreate a new project on the Google Cloud Platform. Within it, create a BigQuery project\nand two Cloud Storage buckets.\n\nUnder IAM, create a service account and a key for it, making sure to download\nthe [key file](https://cloud.google.com/iam/docs/creating-managing-service-account-keys). \nSave this file as `service-account.json` in this directory.\n\nUpdate `profiles.yml` with information about your BigQuery project. See the \n[dbt docs](https://docs.getdbt.com/reference/warehouse-profiles/bigquery-profile).\n\nEdit `run_docker.sh` and set the bucket names accordingly.\n\n(Re)build the image using the Dockerfile:\n\n```\ndocker build . -t covid-19-stats-image\n```\n\nRun the ELT code. This can be put in a cron job.\n\n```\n./run_docker.sh\n```\n\n\n# Charts and Tables\n\n## Choropleth Map of Two Week Trends by County\n\nShows trends at the county level over the last two weeks.\n\n\u003chttps://codeforkjeff.github.io/covid-19-stats/counties_trends.html\u003e\n\n## Simple Choropleth Map of Outbreaks\n\nThis uses the metric of \"25 or higher new cases per 100k in the last 2 weeks.\" This is one of the measures used by WA\nstate at the start of the pandemic to determine which counties could move to later stages of reopening. So it's a\na helpful working definition of \"outbreak.\"\n\n\u003chttps://codeforkjeff.github.io/covid-19-stats/outbreaks_simple.html\u003e\n\n## Overly Complicated Map of Outbreaks\n\nThis was an initial effort that ended up way too busy-looking and complicated to understand. What I still like about it,\nthough, is the color coding to show which counties have been trending upwards or downwards over the last 2 weeks. You\ncan't tell this information at a glance in the simpler choropleth map.\n\n\u003chttps://codeforkjeff.github.io/covid-19-stats/outbreaks.html\u003e\n\n## Tables of Progress by County and by State\n\n\u003chttps://codeforkjeff.github.io/covid-19-stats/counties_progress.html\u003e\n\n\u003chttps://codeforkjeff.github.io/covid-19-stats/states_progress.html\u003e\n\n# Working with the data\n\nKey tables in the database:\n\n`fact_counties_base` - a table containing daily snapshot info for each U.S.\ncounty. Key into the table is Date and FIPS code.\n\n`fact_counties_progress` - a more extensive version of `fact_counties_base`\ncontaining numerous progress measures. Key into the table is Date and FIPS\ncode.\n\n`fact_states` - state-level facts. Key into this table is Date and State.\n\n`fact_nation` - national-level facts.\n\n`dim_county` - county attributes, including population and lat/lng for\ngeographic center. Key into this table is FIPS code.\n\n`dim_state` - state attributes, including population. Key into this table\nis State name.\n\n`dim_date` - dates and related useful 'milestone' dates (e.g. 1 week ago, 1 month ago, etc.)\n\nOther tables:\n\n`raw_*` - raw data\n\n`final_*` - cleaned versions of raw tables\n\n`stage_*` - tables used to stage data to create dim and fact tables\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeforkjeff%2Fcovid-19-stats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeforkjeff%2Fcovid-19-stats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeforkjeff%2Fcovid-19-stats/lists"}