guopengfa
发布于 2020-09-29 / 830 阅读 / 1 评论 / 0 点赞

pandas转换为json数组

import pandas as pd
import numpy as np
from src.sqlcnn import sqlvalue

if __name__ == '__main__':
    data = pd.DataFrame({"A":range(1,10),
                         "B":range(11,20),
                         "C":range(21,30)})
    data = data.to_dict(orient="index")
    data = data.values()

评论