I'm new to pandas. I'm trying to create the following table:
| C | Perl |
| line | func | line | func |
version | covered | total | covered | total |
There is the following structure of JSON that I have created:
{
"version1":{
"perl":{
"line_covered":207,
"line_total":312,
"func_covered":15,
"func_total":18
},
"C":{
"line_covered":321,
"line_total":512,
"func_covered":10,
"func_total":10
}
}
}
I want to iterate over this JSON and create the table. My first problem is that I can't seem to understand how should I create the header of the table. From previous topics, I found that I should use MultiIndex but for some reason, any combination I tried, does not create the wanted header. Is it possible to show me how to create this table?