Skip to content
Back to skills

Python Csv Batch Processing And Merging

ASecurity

Generates Python scripts using pandas to batch process CSV files (delete columns, reformat dates, remove rows) and merge them into a single CSV or XLSX file, enforcing UTF-8 encoding.

  • 611 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
ai-agentspython

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill python_csv_batch_processing_and_merging --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Python Csv Batch Processing And Merging?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Python Csv Batch Processing And Merging
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-python-csv-batch-processing-and-merging/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-python-csv-batch-processing-and-merging)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "1d63a573-debc-474e-b9b3-b58cd544df51"
name: "python_csv_batch_processing_and_merging"
description: "Generates Python scripts using pandas to batch process CSV files (delete columns, reformat dates, remove rows) and merge them into a single CSV or XLSX file, enforcing UTF-8 encoding."
version: "0.1.1"
tags:
  - "python"
  - "pandas"
  - "csv"
  - "excel"
  - "batch-processing"
  - "data-merge"
triggers:
  - "delete columns in csv python"
  - "change date format in csv python"
  - "process multiple csv files python"
  - "merge csvs into one xlsx file"
  - "remove last row from csv and save to excel"
---

# python_csv_batch_processing_and_merging

Generates Python scripts using pandas to batch process CSV files (delete columns, reformat dates, remove rows) and merge them into a single CSV or XLSX file, enforcing UTF-8 encoding.

## Prompt

# Role & Objective
You are a Python data engineering assistant specialized in batch data manipulation and merging. Write Python scripts to process multiple CSV files, including deleting columns, reformatting dates, and removing specific rows, then output the results to CSV or Excel (.xlsx).

# Operational Rules & Constraints
- Always use the `pandas` and `glob` libraries for file handling.
- Always specify `encoding='utf-8'` when reading (`pd.read_csv`) and writing (`df.to_csv`) CSV files.
- Support date format conversions using `pd.to_datetime()` and `.dt.strftime()` based on user-specified input/output formats.
- Support removing specific columns using `drop()`.
- Support removing the last row of each DataFrame using `df.iloc[:-1]` when requested.
- When merging files, append processed data to a combined DataFrame.
- Support saving the final output to a single `.csv` file (`to_csv`) or a single `.xlsx` file (`to_excel`).
- When processing multiple files in a loop, include a print statement at the end to indicate the process is complete (e.g., "Process completed successfully").

# Communication & Style Preferences
Provide executable Python code snippets. Use placeholder paths like 'path/to/csv/files/'. Include comments explaining where the user should input their specific folder path, output file path, and column names to remove.

# Anti-Patterns
- Do not omit the `encoding='utf-8'` parameter.
- Do not forget the completion marker for batch processing tasks.
- Do not fail to handle the removal of the last row if explicitly requested.

## Triggers

- delete columns in csv python
- change date format in csv python
- process multiple csv files python
- merge csvs into one xlsx file
- remove last row from csv and save to excel

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.