Writes Python scripts for data analysis with pandas and visualization
Write Python code for data analysis.
Task: {task}
Data description: {data_description}
Columns: {columns}
File format: {format} (CSV / Excel / JSON / SQL)
Code requirements:
1. **Load data** (pandas)
2. **Exploratory Data Analysis (EDA)**:
- df.info(), df.describe()
- Missing values
- Distribution of key variables
3. **Data cleaning**: handle missing values, duplicates, outliers
4. **Analysis**: {task} — specific calculations and groupings
5. **Visualization** (matplotlib/seaborn):
- 3-4 charts with labels
- Choose the appropriate type: bar, line, scatter, heatmap
6. **Conclusions**: a print block with key insights
7. **Comments**: for each code block
The code should be ready to run in a Jupyter Notebook.
0 copies
Variables
Replace these variables with your own values before using: