Use Wikipedia to get state population. Use US census to get state areas and shapes. Use jupyter notebook and pandas to import data and calculate population density. Use GeoPandas to map population density.
conda activate beepscore
start jupyter server
Python version 3.6.1
Pandas version 0.23.0
Python and Pandas introductory tutorials and examples
Sentdex youtube channel is AWESOME!
beepscore repo based on Sentdex intro
Learn Python Through Public Data Hacking by David Beazley
beepscore repo based on Beazley Do tutorial Learn Python Through Public Data Hacking
Creating a Choropleth Map of the World in Python using GeoPandas
Using Python and GeoPandas on US Census Data
shows examples of slicing https://n8henrie.com/uploads/2017/11/plotting-us-census-data-with-python-and-geopandas.html
Let’s make a map! Using Geopandas, Pandas and Matplotlib to make a Choropleth map
Making a Geographic Heatmap with Python
very pretty, overlays "hot zones" on map showing roads https://alcidanalytics.com/p/geographic-heatmap-in-python
Three ways to make a choropleth
shows Folium, I didn't try it https://ocefpaf.github.io/python4oceanographers/blog/2015/08/24/choropleth/
List of states and territories of the United States by population
List of states and territories of the United States by population density
US Census has many databases and apis. So many it can be difficult to find what you want!