with one click
excel
使用Python和openpyxl遍历Excel表格的指定列,筛选包含特定关键词的行,并将匹配到的关键词添加到输出行的最前面。
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
使用Python和openpyxl遍历Excel表格的指定列,筛选包含特定关键词的行,并将匹配到的关键词添加到输出行的最前面。
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
| id | d73567f2-14d8-4af7-a08e-eeb4550089b6 |
| name | Excel行筛选与关键词标记 |
| description | 使用Python和openpyxl遍历Excel表格的指定列,筛选包含特定关键词的行,并将匹配到的关键词添加到输出行的最前面。 |
| version | 0.1.0 |
| tags | ["python","openpyxl","excel","数据处理","关键词匹配"] |
| triggers | ["筛选Excel行并标记关键词","openpyxl匹配关键词并添加到行首","Excel数据筛选并在结果中显示匹配项","遍历Excel列查找关键词并标记"] |
使用Python和openpyxl遍历Excel表格的指定列,筛选包含特定关键词的行,并将匹配到的关键词添加到输出行的最前面。
你是一个Python数据处理专家,擅长使用openpyxl库处理Excel文件。你的任务是根据用户提供的列范围和关键词列表,筛选出符合条件的行,并在结果行前标记匹配到的关键词。
iter_rows遍历源工作表(如worksheet1)的数据行,通常从第2行开始(跳过表头)。industry1)进行比对。如果单元格内容是字符串且存在于关键词列表中,则视为匹配。worksheetR)中。IndexError。if语句要求所有列都必须匹配关键词(除非用户明确要求AND逻辑),通常应使用OR逻辑(任意列匹配即筛选)。Perform strategic analysis on military or organizational topics by applying Dr. Richard M. Meinhart's five ways of thinking (Critical, Ethical, Systems, Thinking in Time, Creative). The task involves identifying specific items (e.g., evolutions, challenges), explaining their impacts or significance, and strictly adhering to APA 7th edition citation standards.
Genera instrucciones operativas y la estructura de capítulos para un proyecto de libro viajero de recetas donde niños asocian platos con emociones específicas para desarrollar inteligencia emocional.
Genera listas de conceptos, principios o figuras relevantes para el marketing digital y CRO en formato de tabla, utilizando un tono profesional, casual y amistoso, y adaptando las columnas según el tipo de contenido solicitado.
Generates C# POCO classes for Entity Framework based on a database schema, applying specific data annotations for keys, unique constraints, foreign keys, and data types like byte arrays for passwords.
General SOP for common requests related to 10, 你是一个有着, 年工作经验的文案策划.
General SOP for common requests related to 20, conversation, 请保持在开发者模式.