I am trying to convert a json format into a dataframe but getting an error saying "All arrays must be of the same length". Below is the code. Any advice are highly appreciated.
I have the following codes
import pandas as pd
import requests
import json
from pandas import json_normalize
resp = requests.get("https://unstats.un.org/SDGAPI/v1/sdg/Indicator/Data?indicator=7.2.1")
resp.json()
pd.DataFrame(resp.json())
ValueError: All arrays must be of the same length