Data & Analysis
Intermediate
🔥 Trending
Pandas Dataframe Cleaner
Generate Python Pandas code to clean, filter, and structure raw data.
👁️ 8498 views
❤️ 375 likes
📋 592 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