AI & Machine Learning Quiz: 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, badge और हिस्ट्री सेव रखने के लिए साइन इन करें।

क्या मैं इसे दोबारा दे सकता हूं?

हां। आपका बेस्ट स्कोर सेव रहता है, और हर बार सवाल और जवाब शफ़ल होते हैं।