Data & Analysis
Intermediate
🔥 Trending
Pandas Dataframe Cleaner-3
Generate Python Pandas code to clean, filter, and structure raw data.
👁️ 1676 views
❤️ 69 likes
📋 169 copies
The Prompt Template
Write a Python script using pandas to clean a raw dataset. File: '[FILENAME]'. Messy features: [MESSY_FEATURES] (e.g. nulls, wrong datatypes). The script should: 1) Load the file, 2) Handle missing values, 3) Convert columns to correct types, 4) Remove duplicates, 5) Filter outliers, 6) Export clean CSV.
305 characters
Tags
Works Best With
ChatGPT Claude