ควิซ AI & Machine Learning: Data Cleaning with Pandas

Real datasets arrive with gaps, duplicates and numbers stored as text. This pandas quiz tests how missing values behave, how fillna, dropna, drop_duplicates and to_numeric work, and which cleaning choices leak information into a model.

ปานกลาง 10 ข้อ ~6 นาที ผ่านที่ 80%

เลือกโหมด

กำลังเล่นแบบผู้เยี่ยมชม: เข้าสู่ระบบเพื่อเก็บ XP และ streak

ตัวอย่างคำถาม

ข้อ 1 จาก 10

What does this print?

import pandas as pd
df = pd.DataFrame({"a": [1, None, 3], "b": [None, None, 6]})
print(int(df.isna().sum().sum()))
ดูเฉลย

C. 3 isna() marks every missing cell, the first sum() counts them per column (a: 1, b: 2) and the second adds those counts: 3.

ควิซนี้มีเนื้อหาอะไรบ้าง

  • Counting and spotting missing values with isna()
  • Why a missing value turns an int column into floats
  • fillna(), dropna() and drop_duplicates()
  • Fixing types and strings with to_numeric() and .str
  • Imputing without data leakage

คำถามที่พบบ่อย

ต้องมีบัญชีไหม?

ไม่ต้อง ใครก็เล่นได้ เข้าสู่ระบบเพื่อเก็บ XP, streak, เหรียญตรา และประวัติ

ทำซ้ำได้ไหม?

ได้ ระบบเก็บคะแนนที่ดีที่สุดไว้ และสลับคำถามกับตัวเลือกใหม่ทุกครั้ง