clean-data-xls by anthropics/financial-services-plugins
npx skills add https://github.com/anthropics/financial-services-plugins --skill clean-data-xls清理活动工作表或指定范围内的杂乱数据。
Excel.run(async (context) => {...}))。通过 range.values 读取,通过 range.formulas = [["=TRIM(A2)"]] 写入辅助列公式。就地清理与辅助列清理的决策仍然适用。A1:F200),则使用它| 问题 | 查找内容 |
|---|---|
| 空白字符 | 前导/尾随空格,双空格 |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 大小写 | 分类列中大小写不一致(usa / USA / Usa) |
| 数字存储为文本 | 以文本形式存储的数值;数字单元格中杂散的 $、,、% |
| 日期 | 同一列中格式混杂(3/8/26、2026-03-08、March 8 2026) |
| 重复项 | 完全重复的行和近似重复项(大小写/空白字符差异) |
| 空白 | 在其他有内容的列中的空单元格 |
| 混合类型 | 一列中 98% 是数字但有 3 个文本条目 |
| 编码 | 乱码(é、’),不可打印字符 |
| 错误 | #REF!、#N/A、#VALUE!、#DIV/0! |
在进行任何更改之前显示摘要表格:
| 列 | 问题 | 数量 | 建议的修复方案 |
|---|
=TRIM(A2)、=VALUE(SUBSTITUTE(B2,"$",""))、=UPPER(C2)、=DATEVALUE(D2)),则在相邻的辅助列中写入公式,而不是在 Python 中计算结果并覆盖原始数据。这使转换过程透明且可审计。每周安装次数
22
仓库
GitHub 星标数
5.7K
首次出现
3 天前
安全审计
安装于
opencode19
gemini-cli18
amp18
cline18
github-copilot18
codex18
Clean messy data in the active sheet or a specified range.
Excel.run(async (context) => {...})). Read via range.values, write helper-column formulas via range.formulas = [["=TRIM(A2)"]]. The in-place vs helper-column decision still applies.A1:F200), use it| Issue | What to look for |
|---|---|
| Whitespace | leading/trailing spaces, double spaces |
| Casing | inconsistent casing in categorical columns (usa / USA / Usa) |
| Number-as-text | numeric values stored as text; stray $, ,, % in number cells |
| Dates | mixed formats in the same column (3/8/26, 2026-03-08, March 8 2026) |
Show a summary table before changing anything:
| Column | Issue | Count | Proposed Fix |
|---|
=TRIM(A2), =VALUE(SUBSTITUTE(B2,"$","")), =UPPER(C2), =DATEVALUE(D2)), write the formula in an adjacent helper column rather than computing the result in Python and overwriting the original. This keeps the transformation transparent and auditable.Weekly Installs
22
Repository
GitHub Stars
5.7K
First Seen
3 days ago
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode19
gemini-cli18
amp18
cline18
github-copilot18
codex18
通过 LiteLLM 代理让 Claude Code 对接 GitHub Copilot 运行 | 高级变通方案指南
43,100 周安装
如何创建 llms.txt 文件:为大型语言模型优化仓库导航的完整指南
7,800 周安装
AI自动化实施计划更新工具 - 结构化、机器可读的更新实施计划生成
7,800 周安装
技术栈蓝图生成器 - 自动分析代码库,生成.NET/Java/JS/Python等技术栈文档
7,800 周安装
Solidity 智能合约安全指南:防范重入攻击、溢出漏洞与访问控制
7,900 周安装
Terraform AzureRM Set Diff Analyzer - 解决AzureRM Provider误报差异的Terraform工具
7,800 周安装
Finnish Humanizer - AI文本芬兰语自然化工具,移除AI痕迹,让写作更地道
7,800 周安装
| Duplicates | exact-duplicate rows and near-duplicates (case/whitespace differences) |
| Blanks | empty cells in otherwise-populated columns |
| Mixed types | a column that's 98% numbers but has 3 text entries |
| Encoding | mojibake (é, ’), non-printing characters |
| Errors | #REF!, #N/A, #VALUE!, #DIV/0! |