/covid-plotting

Example python scripts to plot COVID-19 data

Primary LanguagePythonDo What The F*ck You Want To Public LicenseWTFPL

Overview

I like to make charts for fun. This repository contains some example Python scripts to plot COVID-19 data, such as in this figure. The scripts require Matplotlib, Numpy, and Pandas, plus the data files listed below. If you encounter a probelm, get in touch.

Image of pyburgers logo

Worldwide Data

The covid_world.py file plots daily confirmed cases and deaths across the world. The script requires data from Our World in Data.

Statewide Data

The covid_state.py file plots daily confirmed cases, tests/positivity, and hospitalizations/deaths for Oklahoma. It can be modified for any state. The script requires data from The New York Times and The COVID Tracking Project. The latter should be placed in a folder called 'covid-tracking'.

License

This template is free source code. It comes without any warranty, to the extent permitted by applicable law. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See http://www.wtfpl.net for more details.