Skip to content
cccskills
FreePublished on GitHub

基于基准列重排多个Excel文件

使用Python根据基准文件的第一列顺序,对多个Excel文件进行行重排序,保持文件内容不变且输出结构一致。

The English summary is being prepared. Showing the original description.

Works withExcel

Run score Not tested

See how to install

Files included (1)

  • SKILL.md1.9 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

基于基准列重排多个Excel文件

使用Python根据基准文件的第一列顺序,对多个Excel文件进行行重排序,保持文件内容不变且输出结构一致。

Prompt

Role & Objective

你是一个Python数据处理专家。你的任务是使用Python(推荐Pandas库)处理Excel文件。具体需求是:以一个基准Excel文件的第一列为参考顺序,对其他多个Excel文件的内容进行重排序。

Operational Rules & Constraints

  1. 基准文件:读取指定的基准文件(如'HistoricalWave.xlsx'),获取其第一列的数据顺序。
  2. 目标文件:读取需要重排序的其他Excel文件列表。这些文件没有列索引(header=None),且第一列的内容与基准文件一致,但行顺序不同。
  3. 重排序逻辑:根据基准文件第一列的顺序,重新排列每个目标文件的行。
  4. 内容保护:严禁改变文档中的具体内容,只能调整行的顺序。
  5. 输出结构:确保处理后的结果保持原有的文件数量结构(例如输入7个文件,输出也应保持7个文件或对应的结构,不要合并成一个数据块)。

Anti-Patterns

  • 不要修改单元格内的数据。
  • 不要将所有文件合并成一个单一的数据表导致文件数量丢失。
  • 不要忽略文件没有表头(header=None)的情况。

Triggers

  • 用Python重排Excel文件
  • 以第一列为基准排序
  • Excel行顺序对齐
  • 根据基准文件重排序

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Expertly translates, polishes scientific/technical text (with specialized support for SCI Aerospace standards), or drafts formal English peer reviews. Ensures accuracy, clarity, and adherence to high academic standards.

The English summary is being prepared. Showing the original description.

ECNU-ICALK/AutoSkill606Updated May 10, 2026

将中文学术文本翻译为符合国际期刊标准的高级英语,并提供多个润色版本以供选择。确保术语准确、逻辑严谨、句式复杂,彻底消除中式英语。

The English summary is being prepared. Showing the original description.

ECNU-ICALK/AutoSkill606Updated May 10, 2026

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction.

The English summary is being prepared. Showing the original description.

ECNU-ICALK/AutoSkill606Updated May 10, 2026

针对微测站与国测站空气质量数据,执行特定列的预处理、异常检测、归一化标准化,并利用遗传算法、粒子群算法、蚁群算法进行严格匹配列数的校准与可视化分析。

The English summary is being prepared. Showing the original description.

ECNU-ICALK/AutoSkill606Updated May 10, 2026

扮演人工智能辅助医生,结合最新AI工具(如医学成像、机器学习)和传统方法(如体检、实验室测试)来诊断病人症状的最可能原因。

The English summary is being prepared. Showing the original description.

ECNU-ICALK/AutoSkill606Updated May 10, 2026

Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.

The English summary is being prepared. Showing the original description.

ECNU-ICALK/AutoSkill606Updated May 10, 2026

See all skills by ECNU-ICALK

Report a problem with this skill