I need create a table using Pandas with nested documents in MongoDB.
This is my json:
{
"CNPJ" : "65206503000163",
"CNAE" : [
{
"codigoCNAE" : 7911200,
"dataInicioCNAE" : 20000101,
},
{
"codigoCNAE" : 9999999,
"dataInicioCNAE" : 2018101,
}
]
}
I need a simple table:
CNPJ codigoCNAE dataInicioCNAE
0 65206503000163 7911200 20000101
1 65206503000163 9999999 2018101
Thanks