Creating a US Map in Python turns out to be more straightforward than simple Google searches yielded for me, so posting here. There are 2 requirements beyond your basic Python setup: 1) the geopandas package and 2) getting 'shape files'. The former is done via pip install. The latter has some nuances, described here:
- Get shape files from census bureau (for US, probably has others). In the code below, I show how to download via Python, but one can do manually.
- Depending on what you are doing, there's different files to choose from based on resolution.
- Out of the box, it might not be what you need exactly, so additional massaging needed. In my example below, the plot includes American Samoa. Hence, any plot becomes irrationally small because it is scaled as such. I left out Hawaii and Alaska for this reason, but one can code up a way to include these in a reasonable way (not included here).