Skip to content
goodprompts

Build a pandas data pipeline

Describe the input, the output, and the transformations. The code validates data before and after, logs each step, and comes with a test on mock data.

3 blanksData AnalysisSuggested models GPT, Claude, Geminiby @library

The prompt

755 characters
Write a Python data pipeline that accomplishes the following: **Input data:** **Desired output:** **Transformations needed:** Requirements: 1. Use pandas for data manipulation 2. Include proper error handling for common data issues (missing values, wrong types, duplicates) 3. Add logging at each major step 4. Make the pipeline idempotent (safe to run multiple times) 5. Include data validation checks before and after transformation 6. Add type hints and docstrings 7. Make it modular — each transformation should be a separate function Also provide: - A sample test with mock data - Performance tips if the dataset is large (>1M rows) - A brief explanation of each transformation step
755 characters

Model ratings

4.6 / 5

Strongest on the task, the situation, and the fill-in blanks. Weakest on the output.

  • Astra
  • Fable
  • Neon

Worth fixing

  • It doesn't say how long or how detailed the output should be.2 of 3 models

Rated

Wording only. The models read the prompt without running it.

  • AstraOpenAI · gpt-6.2-astra
  • FableAnthropic · claude-fable-5-2
  • NeonGoogle · gemini-4-neon-high

About this prompt

Category
Data Analysis
Suggested models
GPT, Claude, Gemini
Blanks
3
Published
Feb 14, 2026
Tags
#structured-output#step-by-step#technical

by @library

Comments

Details

Category
Data Analysis
Suggested models
GPT, Claude, Gemini
Blanks
3
Published
Feb 14, 2026
Tags
#structured-output#step-by-step#technical
GoodPrompts Library@library · 94 published
View profile

Comments

No comments yet.

Remixes

No remixes yet. Create your own version of this prompt.

Remix

More like this

Analyze a dataset and report the findingsData Analysis4 blanksDiagnose a user retention problemData Analysis5 blanksExcel tracker for a 14-day X audience growth baselineData Analysis

Unfilled blanks stay as {{name}} when copied.