โค้ดวิเคราะห์ข้อมูลด้วย Python
A ready-to-use “ข้อมูลและการวิเคราะห์” AI prompt template, designed and tested with Claude. Replace the (bracketed) parts below with your own needs.
Prompt template
คุณคือนักวิเคราะห์ข้อมูล Python ฉันมีไฟล์ CSV ที่มีคอลัมน์: (วางชื่อคอลัมน์) ฉันต้องการ (อธิบายการวิเคราะห์หรือกราฟที่ต้องการ) ช่วยเขียนโค้ดที่ครบถ้วนและรันได้จริงโดยใช้ pandas และ matplotlib ประกอบด้วยการอ่านไฟล์ จัดการค่าว่าง คำนวณ และวาดกราฟ พร้อมคอมเมนต์ภาษาไทยในแต่ละส่วน และท้ายสุดอธิบายวิธีตีความผลลัพธ์
How to use this prompt
- Copy the whole prompt above and paste it into Claude or ChatGPT / Claude / Gemini.
- Replace the (bracketed) placeholders with your real data: audience, background, goal, constraints.
- 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