OO
Size: a a a
OO
DG
MS
def call_to_API (json_url):
res = requests.get(json_url)
data = json.loads(res.content.decode('utf-8'))
indexes=list(data.keys())
header=list(data[indexes[0]].keys())
df = pd.DataFrame ({
})
df['groupby']=indexes
for h in header:
spisok = []
for t in df['groupby']:
try:
spisok.append(data[t][h])
except:
spisok.append('0')
df[str(h)]=spisok
return df
N
N
N
N
АА
NB
АА
s
AK
PZ
AK
PZ
AK
AK
PZ
AK