- Esecutori
-
Impara
Impara Python Esempi eseguibili, NumPy, pandas e altro Impara l'IA / Machine LearningReti neurali, ML e LLM da zero Impara C e C++ Puntatori, memoria, STL e C++ moderno Impara C#Fondamenti, OOP, LINQ, async ed esercizi .NET Impara MatplotlibGrafici a linee, barre, dispersione e torta con visualizzatori Impara RustOwnership, trait, gestione degli errori e thread Impara GoSlice, interfacce, goroutine e canali Algoritmi Python Ricerca, ordinamento, ricorsione e visualizzazioni O(n) Algoritmi C e C++ Confronta le implementazioni in C e C++ Programmazione per bambini Impara a programmare giocando!
- QuizNuovo
- SfideNuovo
- Per docentiNuovo
- Aggiornamenti
- Offrimi un caffè
Quiz di 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.
Domanda di esempio
Domanda 1 di 10What does this print?
import pandas as pd
df = pd.DataFrame({"a": [1, None, 3], "b": [None, None, 6]})
print(int(df.isna().sum().sum()))
Mostra la risposta
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.
Cosa copre questo quiz
- Counting and spotting missing values with
isna() - Why a missing value turns an int column into floats
fillna(),dropna()anddrop_duplicates()- Fixing types and strings with
to_numeric()and.str - Imputing without data leakage
Domande frequenti
Serve un account?
No. Chiunque può giocare. Accedi per salvare XP, serie, badge e cronologia.
Posso rifarlo?
Sì. Il tuo miglior punteggio resta salvato, e domande e risposte vengono mescolate ogni volta.