怎样用jupyter导入excel数据

2,359次阅读
没有评论

怎样用jupyter导入excel数据

怎样用jupyter导入excel数据?

Jupyter notebook只能打开当前目录下的数据集

相关推荐:jupyter教程

excel

有两种方法

#用pd包中的read_excel方法
datasets2=pd.read_excel('汇总-京东.xlsx')
print(datasets2.head())

结果

怎样用jupyter导入excel数据

#用pd包中的ExcelFile方法
fileNameStr='汇总-京东.xlsx'
xls = pd.ExcelFile(fileNameStr)
salesDf = xls.parse('京东汇总')
salesDf.head(3)

结果

怎样用jupyter导入excel数据

神龙|纯净稳定代理IP免费测试>>>>>>>>天启|企业级代理IP免费测试>>>>>>>>IPIPGO|全球住宅代理IP免费测试

相关文章:

版权声明:Python基础教程2022-12-07发表,共计300字。
新手QQ群:570568346,欢迎进群讨论 Python51学习