【发布时间】:2016-02-07 04:17:54
【问题描述】:
我正在尝试使用 pandas 读取 JSON 文件:
import pandas as pd
df = pd.read_json('https://data.gov.in/node/305681/datastore/export/json')
我收到ValueError: arrays must all be same length
其他一些 JSON 页面显示此错误:
ValueError: Mixing dicts with non-Series may lead to ambiguous ordering.
我如何以某种方式读取这些值?我并不特别关注数据有效性。
【问题讨论】: