pyspark-to-excel

将 PySpark .show() 输出转为可直接粘贴到 Excel 的 Tab 分隔格式。触发词:pyspark、数据转excel、表格整理、venus数据、show输出、复制到excel、数据格式化。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "pyspark-to-excel" with this command: npx skills add dilicloud11/pyspark-to-excel

PySpark to Excel

将用户粘贴的 PySpark .show() 输出转为 Tab 分隔文本,可直接复制粘贴到 Excel 自动分列分行。

规则

  1. 不分析、不加工数据,只做格式转换
  2. 不添加任何注释或说明文字,只输出转换结果
  3. 输出用代码块包裹,方便用户一键复制

处理流程

收到数据后立即执行:

  1. 识别 PySpark .show() 格式:以 + 开头的分隔行和 | 分隔的数据行
  2. 去掉所有 +---...---+ 分隔行
  3. 去掉每行首尾的 |
  4. | 拆分各列,去除每个单元格的首尾空格
  5. 用 Tab (\t) 连接各列
  6. 第一个数据行作为表头,后续行作为数据
  7. 如有末尾的 only showing top N rows 提示行,去掉
  8. 将结果放在代码块中输出

示例

用户输入:

+--------+------+-------+
|    name|   age|   city|
+--------+------+-------+
|   Alice|    30|Beijing|
|     Bob|    25|Shanghai|
+--------+------+-------+

输出:

name	age	city
Alice	30	Beijing
Bob	25	Shanghai

用户复制代码块内容,粘贴到 Excel 即可自动分列。

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Huo15 Openclaw Enhance

火一五·克劳德·龙虾增强插件 v5.7.8 — 全面适配 openclaw 2026.4.24:peerDep ^4.24 + build/compat 同步到 4.24 + 14 处 api.on 全部去掉 as any 改成 typed hook(hookName 联合类型 + handler 自动推断 Pl...

Registry SourceRecently Updated
General

Content Trend Analyzer

Aggregates and analyzes content trends across platforms to identify hot topics, user intent, content gaps, and generates data-driven article outlines.

Registry SourceRecently Updated
General

Prompt Debugger

Debug prompts that produce unexpected AI outputs — diagnose failure modes, identify ambiguity and conflicting instructions, test variations, compare model re...

Registry SourceRecently Updated
General

Indie Maker News

独行者 Daily - 变现雷达。读对一条新闻,少走一年弯路。每天5分钟,给创业者装上商业雷达。聚焦一人公司、副业、创业变现资讯,智能分类,行动导向。用户下载即能用,无需本地部署!

Registry SourceRecently Updated