給定可用的形狀文件here:我想在地圖上標記每個多邊形(縣)。 GeoPandas可能嗎?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()
在此先感謝!
@Fantastic!謝謝。 –