<p>我正试着把形状文件读入地理数据框。在</p>
<p>通常我只需要这样做,它就会起作用:</p>
<pre><code>import pandas as pd
import geopandas as gpd
from shapely.geometry import Point
df = gpd.read_file("wild_fires/nbac_2016_r2_20170707_1114.shp")
</code></pre>
<p>但这一次它给了我一个错误:<code>b'Recode from ANSI 1252 to UTF-8 failed with the error: "Invalid argument".'</code></p>
<p>完全错误:</p>
^{pr2}$
<p>我一直想弄清楚为什么有一段时间会出错,但似乎找不到答案。在</p>
<p>数据是从这个网页获得的我只下载了2016年的链接:<a href="http://cwfis.cfs.nrcan.gc.ca/datamart/download/nbac?token=78e9bd6af67f71204e18cb6fa4e47515" rel="noreferrer">http://cwfis.cfs.nrcan.gc.ca/datamart/download/nbac?token=78e9bd6af67f71204e18cb6fa4e47515</a></p>
<p>有人能帮我吗?谢谢您。在</p>