
您可以使用
orient='records'
print df.reset_index().to_json(orient='records')[ {"id":0,"location":"[50, 50]"}, {"id":1,"location":"[60, 60]"}, {"id":2,"location":"[70, 70]"}, {"id":3,"location":"[80, 80]"}]欢迎分享,转载请注明来源:内存溢出

您可以使用
orient='records'
print df.reset_index().to_json(orient='records')[ {"id":0,"location":"[50, 50]"}, {"id":1,"location":"[60, 60]"}, {"id":2,"location":"[70, 70]"}, {"id":3,"location":"[80, 80]"}]欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)