python - 我可以使用 python 循环遍历多个 excel 文件并将单个工作表添加到主工作簿吗?
问题描述
长话短说:我正在尝试创建一个程序,该程序循环遍历存储在我计算机上本地的 excel 文件,并将每个 excel 文件中的工作表添加到主工作簿中。
注意:我不想使用 pandas dataframe.append,因为每张纸都有唯一的信息,我想单独保留每张纸。
任何帮助将不胜感激!
解决方案
I think using openpyxl would be the easiest solution. It'll let you read and write excel sheets, and even gives you the option of creating various sheets. Personally it's my favorite route whenever I'm working with excel.
推荐阅读
- javascript - 为什么我的 React 函数组件方法不起作用
- html - 选择框中的文本底部被截断
- python - 通过 Python 3 查找缺失的漫画章节
- database - 如何使用聚合在猫鼬中对文档数组进行分页?
- angular - Angular Material Dialog Route 导致无限循环
- opengl - 如何围绕其中心旋转翻译的纹理
- java - Complete Version 4 Signing Process 是否有一个好的 Java 客户端?
- c++ - 我们不使用双数组是什么?
- c++ - C++ std::unordered_set 查找/计数/包含常量键引用
- string - Invalid Firebase Database path: Firebase Database paths must not contain '.', '#', '$', '[', or ']'