NOTE: this repository has been archived, as the datasets being used are no longer being updated as March 13, 2023.
A repo for plotting and analyzing COVID-19 cases/deaths, with a focus on the San Francisco Bay Area. The data in this README
are from the John Hopkins University dataset.
To install this package, clone this repo, from the top-level directory of the repo, type the following line into your command line
pip install .
The plots below are easily reproducible using the covid.plot_bay_cases
method. There are also useful functions for reading in the COVID-19 data from both the JHU and NY Times datasets: covid.get_data
loads the entire COVID-19 dataset from the specified source into a Pandas.DataFrame
, and covid.get_bay_data
loads the pertinent information for only the 9 Bay Area counties.
The Bay Area counties included are: Alameda, Contra Costa, Marin, Napa, San Francisco, San Mateo, Santa Clara, Solano, and Sonoma.
NOTE: These data are also shown as interactive plots on slwatkins.com/covid/, taking advantage of HTML code generated by Plotly.
Below, we show the total, cumulative cases (and deaths) over time for the combined 9 Bay Area counties.
Below, we show the daily new cases (and deaths) over time for the combined 9 Bay Area counties.
Below, we show the total, cumulative cases (and deaths) over time for each of the 9 Bay Area counties.
Below, we show the daily new cases over time for each of the 9 Bay Area counties.
Below, we show the daily new cases over the last month for each of the 9 Bay Area counties.