Admin | 2021-12-9 11:13:50 | 被阅次数 | 4781
通过pandas可以读取excel,默认是变成列表。
如果想读取后想转换为字典,请使用下面的代码:
import pandas as pd
df = pd.read_excel('销售总而.xlsx')
datadict1 = df.to_dict(orient='record') # 读取Excel转换为列表中的字典
print(datadict1)
上述代码,全靠第三行转换为列表。
Office 2008 介绍
三维动画制作软件Maya介绍
AutoCAD2008简体中文版介绍(安装系列号
rust构造类似于python的range序列
rust通过Cell单独修改struct中的某项而
遥感技术概述
rust学习示例:超市购物简易结算
Windows Server 2008 给企业应用带来了
rust tokio多线程异步查询sqlite数据库
vscode配置python方法(中文环境、pytho
rust拼接字符串或连接字符串的几种方法
我国千万亿次超级计算机或采用国产Linu
rust impl构造链式函数调用的示例
近10年来最糟糕的10款电子产品
rus之dbg!与Display与format!的使用
rust json的定义及操作
观雅虎在中国的发展论中国互联网的发展
python使用win32com在word中插入图片插
python使用class出现异常:missing 1 re
json字符串转json和struct以及struct转
网站备案号:滇ICP备11001339号-7
Copyright 2007-2021-forever Inc. all Rights Reserved.
Email:dzwebs@126.com QQ:83539231 访问统计