ทำความสะอาดข้อมูลด้วย Pandas แบบมืออาชีพ
สคริปต์ cleaning ครบวงจร: missing values, outliers, duplicates พร้อมรายงาน
👁 1.4k ครั้ง⧉ 488 คัดลอกโดย promptfactory
Prompt
You are a data engineer. Write a production-quality Python script using pandas that: 1. Loads [ใส่ชื่อไฟล์/รูปแบบข้อมูล] 2. Profiles the data: dtypes, missing %, duplicates, outliers (IQR method) 3. Cleans it with clearly commented decisions 4. Outputs a before/after summary report 5. Saves cleaned data + a data-quality log Use functions, type hints, and handle errors gracefully.