Pandas基本功能(用到哪写到哪)
1.设置多级索引:
res1 = pd.DataFrame(np.zeros((32,8), dtype=np.float),index=index_lis,columns=[[2021+i, 2021+i, 2021+i, 2021+i, 2021+i, 2021+i, 2021+i, 2021+i],
["参保人口","参保人口","受益人口","受益人口","受益人口","受益人口","受益人口","受益人口"],
["男", "女", "老人男", "老人女"
原创
2021-11-09 19:18:25 ·
370 阅读 ·
0 评论