Home > Blockchain >  How to fill locations of shapefile based on CSV data set?
How to fill locations of shapefile based on CSV data set?

Time:04-15

I'm using GeoPandas in Python to create a heatmap of the state of Florida from a given CSV dataset and a shapefile of Florida:

enter image description here

This is the code I have for displaying the state from the shapefile, and the CSV dataset contents (It's a list of Covid cases in the Florida counties),

The shapefile also conveniently has data for the the name of the counties along with their respective polygons:

enter image description here

My plan is to parse through the CSV and keep track of how many cases there are for each county then build a heatmap from that, but I'm unsure of how to work with shapefiles.

CodePudding user response:

  • I believe I have found same shape file you are working with. I don't know the source of your COVID data so have used NY Times data (enter image description here

  • Related