Back to Prompts
David Park · Jul 5, 2026 · ⏱️ 1 min read
More from Code
Python Data Analysis Pipeline
End-to-end data analysis pipeline template with pandas, visualization, and reporting.
👁️ 14,075 views 📋 1,847 copies ❤️ 983 saves 👍 31 likes
Create a Python data analysis script for [dataset description].
IMPORTS:
```python
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
from sklearn.preprocessing import StandardScaler
```
DATA LOADING:
```python
df = pd.read_csv('[file_path]')
df.head(), df.info(), df.describe()
```
CLEANING:
• Handle missing values: [dropna / fillna with median/mean]
• Remove duplicates
• Fix data types (dates, categories, numerics)
• Outlier detection using IQR method
EXPLORATORY ANALYSIS:
• Univariate: histograms, box plots for each feature
• Bivariate: correlation matrix heatmap, scatter plots
• Categorical: bar charts, count plots
FEATURE ENGINEERING:
• Create date features (day of week, month, quarter)
• Binning continuous variables
• One-hot encoding for categorical variables
VISUALIZATION:
• 3 key charts that tell the story
• Annotated findings on each chart
Expected Output
Fill in the bracketed [placeholders] in the prompt above with your specific details and run it with your preferred AI model to generate a tailored output based on this template.
Compatible Models
Usage Tips
- 1 Use the "python" approach to get more relevant and targeted results from this prompt.
- 2 Use the "data-science" approach to get more relevant and targeted results from this prompt.
- 3 Use the "pandas" approach to get more relevant and targeted results from this prompt.
- 4 Use the "analysis" approach to get more relevant and targeted results from this prompt.
- 5 Use the "visualization" approach to get more relevant and targeted results from this prompt.
Frequently Asked Questions
What is this prompt used for?
This prompt is designed to help you generate high-quality outputs tailored to your specific needs. Simply replace the bracketed [placeholders] with your own details and use it with your preferred AI model.
Which AI models work best?
This prompt is optimized for the compatible models listed above. Different models may produce varying results based on their training and capabilities.
How do I customize this prompt?
Look for text in [brackets] and replace it with your specific details. You can also modify any section to better match your use case or style preferences.
Can I share this prompt?
Absolutely! Use the share button to send this prompt to others. You can also copy it and use it in your own projects.
Comments (3)
Alex Chen Aug 10, 2026
This prompt saved me hours of work. The structure is incredibly well thought out.
Marcus Johnson Aug 7, 2026
I used this for my latest project and got amazing results. Highly recommend!
Tom Wilson Aug 8, 2026
Is there a version optimized for Claude? The output was good but could be better.