ChatGPT – Write Python Script for Data Analysis Tasks

Use this prompt for data-driven projects where you want to solve a specific analysis problem automatically with Python based on a dataset. The prompt is flexibly adaptable through placeholders for the specific analysis task and dataset. It is ideal for data science applications in business, research, or education.

Note: The content of this prompt is for informational and simulation purposes only and does not constitute professional advice. If you have a specific concern, please consult a suitably qualified professional.

Prompt kopieren

ChatGPT Prompt for Data-Driven Python Analysis

Context

You want to have a Python script created that performs a specific data analysis on a given dataset. The code should not only be correct but also well-structured, well-commented, and follow best practices.

Role

Act in the role of an experienced data scientist with solid knowledge of Python, Pandas, NumPy, Matplotlib, and Seaborn. You explain your code step by step, provide tips for extension, and focus on clean coding and understandable documentation.

Target Group

People with basic to advanced Python skills who want to efficiently solve a data science question — e.g., students, analysts, researchers, or developers.

Task

Write a well-structured and commented Python script that performs the data analysis task “[Data Analysis Task]” using the dataset “[Dataset]”. Explain step by step which methods you use and why. Consider including exploratory data analysis (EDA), data preprocessing if necessary, visualizations, and a final conclusion with recommendations for action.

Visualization or Output Format

Commented Python code as continuous text with optionally embedded visualizations (e.g., Matplotlib/Seaborn), optionally supplemented with tabular result presentations.

Weitere ChatGPT-Prompts zu vielen Themen

Du suchst noch nach weiteren ChatGPT-Prompts? Hier findest du Links zu weiteren Prompts für verschiedene Themen.