Skip to content

Instantly share code, notes, and snippets.

View brsr's full-sized avatar

B R S Recht brsr

View GitHub Profile
@brsr
brsr / covid.py
Last active April 28, 2020 00:15
Plot of Delphi's COVID-19 symptoms survey data for Oneida County, NY
import numpy as np
import matplotlib.pyplot as plt
#module downloaded from https://github.com/cmu-delphi/delphi-epidata/blob/master/src/client/delphi_epidata.py
from delphi_epidata import Epidata
#see https://cmu-delphi.github.io/delphi-epidata/api/covidcast.html for API details
#oneida county: geo_type='county', geo_value='36065'
#queens: geo_type='county', geo_value='36081'
#NY state: geo_type='state', geo_value='NY'
res = Epidata.covidcast(data_source='fb-survey', signal='smoothed_cli',