数据结构优化_自用

 

#读取描述性指标
miaoshu_table=pd.read_csv("../../data/miaoshu.csv",encoding='utf-8')
discrept_dict=miaoshu_table.to_dict('records')

miaoshu_dict={}  #描述型字典
for r in discrept_dict:
	value=r['检查方式']+'_&'+r['部位']	#字典value
	key=r['清洗后名称'] #字典key
	miaoshu_dict[key]=value
发布了118 篇原创文章 · 获赞 25 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/qq_38403590/article/details/104357683