Darren Fishell

Darren Fishell

Data reporter and wrangler

Track Maine coronavirus cases by county in this interactive map

Written on March 17, 2020

The virus COVID-19 continues to spread throughout Maine, with the first signs emerging of “community spread” in Cumberland County as of Tuesday, March 17.

The Maine CDC is publishing details about each confirmed case in the state, as well as negative tests, which are visualized below.

As the CDC publishes these numbers, its director has, Dr. Nirav Shah, has noted that it’s unclear how much the data lags behind the real spread of the virus.

“What we know about outbreaks is that we are often just detecting the tip of the iceberg,” Shah told reporters Sunday, according to Maine Public.

For ongoing coverage of coronavirus in Maine, see the free coverage from the Bangor Daily News, the Portland Press Herald and Maine Public. On Twitter, OpenMaine also has some cool digital resources in the works.

Update: The dashboard now updates daily from Google Sheets. The Google Sheet updates hourly, from 11 a.m. to 6 p.m., based on the CDC’s historical daily update time.

The process behind the map

The data above is scraped from the Maine CDC website in Python, based on table names at the CDC’s coronavirus webpage (more details in this Github repository). The scraper runs every hour from 11 a.m. to 6 p.m. and stores a time series of the daily updates from the Maine CDC, starting March 10.

Tableau Public refreshes every 24 hours, in the afternoon.

You can find the raw output in this project at data.world or this Google Sheet.

The sources include four of the different tables that the Maine CDC is publishing separately: a summary of cases, cases by county, cases by age and cases by sex.