python - 如何使用 xlwings 删除 Excel 过滤器
问题描述
我正在使用 xlwings (0.21.4) 使用来自外部来源的数据更新电子表格。除非任何工作表包含过滤器,否则更新工作正常。我正在寻找一种方法来禁用工作簿中各个工作表中的过滤器。我看过与此类似的其他帖子,其中推荐的解决方案是将 workbook.sheet.api.AutoFilterMode 设置为 False 或使用 workbook.sheet.api.ShowAllData。但是,这些都不存在于 api 中。唯一可用的元素是“after”、“any”、“before”、“beginning”、“beginswith”、“contains”、“doesnotbeginwith”、“doesnotcontain”、“doesnotendwith”、“end”、“endswith” , 'first', 'help', 'isin', 'isnotin', 'isrunning', 'last', 'middle', ' 下一个”、“上一个”和“重新启动模式”。我错过了什么?
解决方案
推荐阅读
- swiftui - SwiftUI - 如何使用按钮显示文本,然后使用计时器
- sql-server - 在不授予权限的情况下通过 SQL 查询获取磁盘的全部容量?
- django-rest-framework - Django 可写嵌套序列化器 - 错误非空约束
- java - 我可以在@Value 注释中传递变量来读取属性文件,其键存储在字符串变量中吗?
- php - 我想从此查询中排除一些公司名称
- kubernetes - 从 kubernetes 内部的 InfluxDb 导出数据
- java - 我们可以使用 Liquibase 监控数据库表中新添加的数据吗?
- apache-spark - 我们如何在 Spark 结构化流 2.4.4 中缓存/持久化数据集
- apache-spark - Kubernetes 与 Spark 与 Kubernetes 上的 Spark
- ios - iOS PencilKit 不绘图