Quiz 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.

Trung bình 10 câu hỏi ~6 phút Đạt từ 80%

Chọn chế độ

Bạn đang chơi với tư cách khách: đăng nhập để lưu XP và streak.

Câu hỏi mẫu

Câu 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()))
Xem đáp án

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.

Quiz này có gì

  • 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

Câu hỏi thường gặp

Có cần tài khoản không?

Không. Ai cũng chơi được. Đăng nhập để lưu XP, streak, badge và lịch sử.

Có làm lại được không?

Được. Điểm cao nhất của bạn được giữ lại, câu hỏi và đáp án được xáo trộn mỗi lần.