我必须遵循以下数据框:
ID . Desc . pID . reCost . rpCost . Hrs . Mns . Sds . sID . sTime . tID
12 text 13 28 13 {12,12} {20,20} {32,12} 12 2312 33
Hrs,Mns,Sds是一组1或2个数字
我正在尝试创建一个采用上述df的json,如下所示:
{"ID":12,
"Desc":text,
"pID":13,
"time":{"Hrs":[12,12],"Mns":[32,12],"Sds":[32,12]},
"cost":[{"reCost":28,"rpCost":13,"tID":33}]
}
这在大熊猫中有可能吗?