Pandas code from a plain-English data task
Describe the transformation or analysis you need and get clean, commented pandas code that handles messy data and explains each step.
Describe your messy data and get a prioritized cleaning plan with rules, code and a record of every change you make.
I have a messy dataset to clean before analysis. Build me a cleaning plan.
What the data is: {{data_description}}
Problems I've noticed: {{problems}}
What the cleaned data will be used for: {{purpose}}
Tool: {{tool}}
Create the plan:
1. Triage: rank the issues by how much they could distort the analysis, and note issues I may not have spotted that typically appear in this kind of data.
2. For each issue, give: how to detect it (with a quick query or formula), the recommended fix, the alternative fix, and the risk of each (information lost, bias introduced).
3. Decisions I must make: choices that depend on the business meaning (for example, is a blank "zero" or "unknown"? which duplicate record wins?). Ask me these as short questions rather than deciding silently.
4. A step order that avoids undoing earlier work (for example, standardize text before deduplicating).
5. Code or steps in {{tool}} for the main steps, with comments.
6. A change log template: for each step, record rule, rows affected before and after, and who approved it. Never delete the raw data; keep an untouched copy and keep cleaning reproducible.
7. Final validation checklist to confirm the cleaned data is fit for the stated purpose.
Be concise and practical.Surfacing business-meaning decisions as questions stops the model from quietly making choices that bias your analysis. The change log keeps the cleaning auditable and repeatable.
Licensed CC0 (public domain) Version 1 · history
Describe the transformation or analysis you need and get clean, commented pandas code that handles messy data and explains each step.
Describe your tables and the question you need answered and get a correct, commented SQL query with assumptions spelled out.
Turn a dataset description into a step-by-step exploration plan with checks, hypotheses and the first charts to make.
Paste a regression table and get a careful interpretation of coefficients, fit and reliability, with warnings about causal claims.
Convert raw findings and numbers into a short, decision-ready summary with the answer first, evidence, caveats and next steps.
Set up a proper cohort retention analysis, from defining cohorts and the activity event to producing the table and reading it correctly.
Comments (0)
Sign in to join the discussion.
No comments yet. Be the first to share how it worked.