Skip to content

Utilizes CDC's Monkeypoxx to create a choropleth map of the US

Notifications You must be signed in to change notification settings

eddwang/Monkeypox-Map

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Monkeypox Map of the US

Utilizes CDC's monkeypox data to create a choropleth map of the confirmed cases in the US

Description:

This Python application uses BeautifulSoup, Selenium, and RegEx to read the HTML of the CDC's 2022 US Monkeypox Map to retrieve the number of confirmed monkeypox cases for each state. The corresponding data is then mapped using Pandas, Folium, and WebBrowser. This application also uses OS and Platform libraries to assist in Windows/MacOS cross-platform compatibility.

Sample Image

Table of Contents:

Technologies:

  • BeautifulSoup version: 4.11.1
  • Selenium version: 3.141.0
  • Pandas version: 1.4.3
  • Folium version: 0.12.1.post1
  • ChromeDriver version: 104.0.5112.79

Setup:

To run this project, install these packages:

$ pip install bs4
$ pip install selenium
$ pip install pandas
$ pip install folium
$ pip install lxml

Download ChromeDriver for Selenium here, then add ChromeDriver.exe to PATH as well as the working directory of monkeypox.py.

Future Ideas:

I hope to implement pop-ups whenever the user hovers over a state to display the confirmed cases of the corresponding state. I also hope to add another layer to the map that displays confirmed cases per capita.

Credits:

Here are some resources I used to create this project.

BeautifulSoup and Webscraping:

Folium:

GeoJSON geometry for the shape of each state

About

Utilizes CDC's Monkeypoxx to create a choropleth map of the US

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages