You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用cenpy包访问2021年ACS 5年期数据时遭遇版本支持错误的求助

cenpy包访问2021年ACS 5年期数据时遭遇版本支持错误的求助

我最近在尝试用Python的cenpy包获取2021年的5年期ACS普查数据,但是碰到了问题,有没有其他开发者也遇到过类似情况?

以下是我运行的代码:

cxn = cen.products.ACS(2021)
variable = ["B19013_001E"]
data = cxn.query(
    cols=variable,
    g_unit="tract",
    g_filter = {'state': '41',
            'county': '101'} 
)

执行后弹出了这个错误:

NotImplementedError: The requested year (2021) is too early/late. Only 2017, 2018, or 2019 are supported.

我已经更新了cenpy包,也重启了Jupyter内核,但还是会触发这个错误。

备注:内容来源于stack exchange,提问作者Christina

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.14 17:33:08