AI & Machine Learning-Quiz: Pandas DataFrames

This pandas quiz covers the DataFrame basics you use before any analysis or model. You will predict the result of selecting columns, filtering rows, sorting and using loc and iloc, plus two classic errors.

Leicht 10 Fragen ~5 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({"name": ["Ann", "Bob", "Cy"], "age": [31, 25, 40]})
print(df.shape)
Lösung zeigen

C. (3, 2) shape is (rows, columns). There are 3 people (rows) and 2 columns, so it is (3, 2).

Darum geht es in diesem Quiz

  • shape, columns and selecting a column
  • Boolean filtering and combining conditions with &
  • loc (labels) vs iloc (positions)
  • Sorting with sort_values()
  • Series vs DataFrame results

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.