【问题标题】:Sort Column using openpyxl使用 openpyxl 对列进行排序
【发布时间】:2013-05-01 22:22:42
【问题描述】:

我已创建 Excel 工作表并将数据写入 Excel 文件。

我们有任何使用openpyxl 对列进行排序的功能吗? 我无法附加 Excel 工作表并删除了一行 Excel 工作表:

0   -269.9  99.97   0   -25.58  0   0.0006901   -269.9  127 0   26.23   0   810 -269.9

【问题讨论】:

标签: python excel openpyxl


【解决方案1】:

我很确定 openpyxlxlwt 甚至 xlsxwriter 中没有这样的东西(但如果你在 Windows 上,你可以通过 win32com 和 Excel.Application do it)。

通常,您应该从excel文件中读取数据,在python中对其进行排序并将数据写回。

查看类似问题:

【讨论】:

  • 这是正确的。我可以确认排序 不是 文件格式的一部分,因此无法使用 Python Excel 文件创建模块完成。
猜你喜欢
  • 1970-01-01
  • 2017-11-29
  • 1970-01-01
  • 2018-06-09
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2010-10-21
  • 2013-04-25
相关资源
最近更新 更多