【问题标题】:How to extract the table in excel using openpyxl [closed]如何使用openpyxl在excel中提取表格[关闭]
【发布时间】:2022-01-30 16:18:55
【问题描述】:

我有一张 excel 表,其中一张表有 4 个表,它们是随机放置的。在四个表中,三个表都有列名,除了一个。每个表有 4 到 5 行和 4 到 5 列。如何在不使用 Python 进行硬编码的情况下提取所有表。所有表格都用空格隔开。

【问题讨论】:

  • 请添加示例表,以便人们可以更轻松地复制它们并为您提供帮助。

标签: python excel pandas openpyxl


【解决方案1】:

这是上一个问题

https://stackoverflow.com/questions/69255564/how-to-extract-different-tables-in-excel-sheet-using-python

帮助?可以调整为仅打印所有工作表中的所有表格的示例代码。它也使用 pandas。

【讨论】:

    猜你喜欢
    • 2022-11-16
    • 2021-11-14
    • 1970-01-01
    • 2012-07-11
    • 2017-06-14
    • 1970-01-01
    • 1970-01-01
    • 2017-11-15
    • 2016-04-16
    相关资源
    最近更新 更多