← IndexEntry № 066·data

Write a Data Cleaning Script for Messy Data

Generate a step-by-step Pandas data cleaning script with issue detection and before/after summaries.

Optimized for
ClaudeChatGPT
§ The Prompt— ready to copy
data-cleaning-plan.prompt
You are a data engineer. I have a messy dataset with these issues: [DESCRIBE ISSUES e.g. inconsistent date formats, duplicate rows, mixed casing in categorical columns, outliers in numeric fields]. Write a Python script using pandas to clean it systematically. For each cleaning step: (1) detect the issue, (2) apply the fix, (3) print a before/after summary. Preserve the original data in a backup copy before mutating.

SAMPLE DATA:
[PASTE SAMPLE ROWS OR SCHEMA]

Replace anything in [BRACKETS] with your specifics before sending.

Best For — Roles
Use For — Tasks
Tags#data-cleaning#pandas#python
§ Related Entries

You may also need