Challenge: Dropping Null Values
If a dataset contains rows with null values, consider removing them. In pandas, you can do this using the dropna() method.
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 1. Hoofdstuk 17
single
Challenge: Dropping Null Values
Veeg om het menu te tonen
If a dataset contains rows with null values, consider removing them. In pandas, you can do this using the dropna() method.
Taak
Veeg om te beginnen met coderen
You are given a DataFrame named wine_data.
- Get the length of this
DataFramebefore removing null values and assign the result to thelength_beforevariable. - Remove rows with null values and store the resulting
DataFrameinwine_data. - Get the length of
wine_dataafter removing null values and assign the result to thelength_aftervariable.
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 1. Hoofdstuk 17
single
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.