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
jupyter lab
http://geopandas.org/mapping.html
https://pythonprogramming.net/data-analysis-python-pandas-tutorial-introduction/ https://youtu.be/Iqjy9UqKKuo?list=PLQVvvaa0QuDc-3szzjeP6N6b0aDrrKyL-
https://github.com/beepscore/data_analysis_tutorial
Some examples use Pandas. has code samples downloadable data files https://dabeaz.com/pydata/ https://www.youtube.com/watch?v=RrPZza_vZ3w
https://github.com/beepscore/Learn-Python-Through-Public-Data-Hacking
http://ramiro.org/notebook/geopandas-choropleth/
shows examples of slicing https://n8henrie.com/uploads/2017/11/plotting-us-census-data-with-python-and-geopandas.html
very pretty, overlays "hot zones" on map showing roads https://alcidanalytics.com/p/geographic-heatmap-in-python
shows Folium, I didn't try it https://ocefpaf.github.io/python4oceanographers/blog/2015/08/24/choropleth/
https://en.wikipedia.org/wiki/List_of_states_and_territories_of_the_United_States_by_population
US Census has many databases and apis. So many it can be difficult to find what you want!
https://www.census.gov/geo/maps-data/data/cbf/cbf_state.html
https://www.census.gov/geo/reference/state-area.html
https://www.census.gov/data/developers/guidance/api-user-guide.html
https://www.census.gov/topics/population/genealogy/data/1990_census/1990_census_namefiles.html
https://www.census.gov/topics/population/genealogy/data/2010_surnames.html Names_2010Census_Top1000.xlsx