Python data-analysis code

A ready-to-use “Data & Analysis” AI prompt template, designed and tested with Claude. Replace the (bracketed) parts below with your own needs.

Prompt template
You are a Python data analyst. I have a CSV with columns: (paste the column names). I want to (describe the analysis or chart need). Write complete, runnable code using pandas and matplotlib, including reading the file, handling missing values, computing, and plotting, with Chinese comments per section, and finally explain how to interpret the output.

How to use this prompt

  1. Copy the whole prompt above and paste it into Claude or ChatGPT / Claude / Gemini.
  2. Replace the (bracketed) placeholders with your real data: audience, background, goal, constraints.
  3. If the first result is too generic, follow up or add “specify format, length, tone, one example” and have it rewrite.

Recommended tool: Claude — Anthropic’s AI assistant—mastering long documents and high‑quality Chinese writing