我正在嘗試使用熊貓讀取JSON文件。讀取JSON文件時出錯
import pandas as pd
df = pd.read_json('https://data.gov.in/node/305681/datastore/export/json')
我得到valueError。
ValueError: arrays must all be same length
其他一些JSON頁面顯示此錯誤:
ValueError: Mixing dicts with non-Series may lead to ambiguous ordering.
我怎麼莫名其妙地讀出值?我不關心數據的有效性。