如何根据CSV数据集填充ShapeFile的位置?
我正在使用Python的Geopandas从给定的CSV数据集和佛罗里达州的Shapefile创建佛罗里达州的热图:
这是我从ShapeFile显示状态的代码,并且CSV数据集内容(这是佛罗里达县的共同案例列表),
Shapefile还方便地具有县名称以及各自多边形的数据:
我的计划是通过分析CSV并跟踪每个县有多少个案件,然后从中构建一个热图,但我不确定如何与ShapeFiles一起使用。
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:
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:
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
merge()
结合/加入几何和covid数据merge()
to combine / join geometry and COVID data