我正在探索 Python 的 Jupiter notebook。在调用此方法“访问 OutbreakLocation 数据”时,我在 Python 3.6 中遇到此异常:getting AttributeError: module ‘pandas’ has no attribute ‘json_normalize’
任何想法我们如何解决这个问题?
原文由 user2710603 发布,翻译遵循 CC BY-SA 4.0 许可协议
我正在探索 Python 的 Jupiter notebook。在调用此方法“访问 OutbreakLocation 数据”时,我在 Python 3.6 中遇到此异常:getting AttributeError: module ‘pandas’ has no attribute ‘json_normalize’
任何想法我们如何解决这个问题?
原文由 user2710603 发布,翻译遵循 CC BY-SA 4.0 许可协议
我也有这个错误,解决方案是通过以下方式加载熊猫:
from pandas.io.json import json_normalize
这是由于 pandas 库的版本更改。
原文由 Joselin Intriago 发布,翻译遵循 CC BY-SA 4.0 许可协议
2 回答5.1k 阅读✓ 已解决
2 回答1.1k 阅读✓ 已解决
4 回答1.4k 阅读✓ 已解决
3 回答1.3k 阅读✓ 已解决
3 回答1.2k 阅读✓ 已解决
1 回答1.7k 阅读✓ 已解决
1 回答1.2k 阅读✓ 已解决
确保更新到 Pandas 1.0.3。版本 1 之前的 Pandas 没有 json_normalize。