I tried to read this json file:
'https://www.redistricting.state.pa.us/Resources/GISData/Districts/Legislative/House/2021-Final/JSON/2022%20LRC-House-Final.json'
from urllib.request import urlopen
import json
with urlopen('https://www.redistricting.state.pa.us/Resources/GISData/Districts/Legislative/House/2021-Final/JSON/2022%20LRC-House-Final.json') as response:
level_1=json.load(response)
However, I cannot create dataframe from it using:
pd.DataFrame(level_1)
I get error:
ValueError: All arrays must be of the same length
How can I solve the problem?