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.

Mittel 10 Fragen ~6 Minuten Bestanden ab 80%

Modus wählen

Du spielst als Gast: Melde dich an, damit XP und Serie gespeichert werden.

Beispielfrage

Frage 1 von 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()))
Lösung zeigen

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.

Darum geht es in diesem Quiz

  • 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

Häufige Fragen

Brauche ich ein Konto?

Nein. Jeder kann spielen. Mit Anmeldung werden XP, Serie, Abzeichen und Verlauf gespeichert.

Kann ich es wiederholen?

Ja. Dein Bestwert bleibt erhalten, und Fragen und Antworten werden jedes Mal neu gemischt.