【发布时间】:2021-04-01 23:58:29
【问题描述】:
鉴于可用的形状文件here:我想在地图中标记每个多边形(县)。 GeoPandas 可以做到这一点吗?
import geopandas as gpd
import matplotlib.pyplot as plt
%matplotlib inline
shpfile=<Path to unzipped .shp file referenced and linked above>
c=gpd.read_file(shpfile)
c=c.loc[c['GEOID'].isin(['26161','26093','26049','26091','26075','26125','26163','26099','26115','26065'])]
c.plot()
提前致谢!
【问题讨论】:
标签: python-3.x matplotlib geopandas