✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚡️ Concerned about the grid? Kyle Baranko teaches how to predicting peak loads using XGBoost. Register for the August webinar!

Dash DataTable with Multi-Headers from JSON

Hello.
I have json from other api:

[
{
"unit": "Shop1",
"data": [
{
"mounth": "September",
"sales": 4157743.43,
"bills": 2075,
"mid_bill_price": 2003.73,
"coast_bay": 2912707.99,
"markup": 42.74
},
{
"mounth": "October",
"sales": 2143624.01,
"bills": 1042,
"mid_bill_price": 2057.22,
"coast_bay": 1468966.82,
"markup": 45.93
}
],
"end_remainder": 36223321.23
},
{
"unit": "Shop2",
"data": [
{
"mounth": "September",
"sales": 1516184.47,
"bills": 1350,
"mid_bill_price": 1123.1,
"coast_bay": 1036314.75,
"markup": 46.31
},
{
"mounth": "October",
"sales": 887312.66,
"bills": 744,
"mid_bill_price": 1192.62,
"coast_bay": 595123.66,
"markup": 49.1
}
],
"end_remainder": 5796360.83
}
]

This is data about shops bills. Tag “data” have massive objects with main data.
I cannot normalize data from json for DataTable (dash).

I use merge_duplicate_headers=True, but cannot parse JSON.

mb use json - > pandas dataframe?
But I have difficult json structure.