Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Oppiskele Challenge: Dropping Null Values | Analyzing the Data
Pandas First Steps
course content

Kurssisisältö

Pandas First Steps

Pandas First Steps

1. The Very First Steps
2. Reading Files in Pandas
3. Analyzing the Data

book
Challenge: Dropping Null Values

If the dataset has rows with null values, we should consider removing them. In pandas, this can be achieved using the dropna() method.

Tehtävä

Swipe to start coding

You are given a DataFrame named wine_data.

  • Get the length of this DataFrame before removing null values and assign the result to the length_before variable.
  • Remove rows with null values and store the resulting DataFrame in wine_data.
  • Get the length of wine_data after removing null values and assign the result to the length_after variable.

Ratkaisu

Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 3. Luku 8
toggle bottom row

book
Challenge: Dropping Null Values

If the dataset has rows with null values, we should consider removing them. In pandas, this can be achieved using the dropna() method.

Tehtävä

Swipe to start coding

You are given a DataFrame named wine_data.

  • Get the length of this DataFrame before removing null values and assign the result to the length_before variable.
  • Remove rows with null values and store the resulting DataFrame in wine_data.
  • Get the length of wine_data after removing null values and assign the result to the length_after variable.

Ratkaisu

Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 3. Luku 8
Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Pahoittelemme, että jotain meni pieleen. Mitä tapahtui?
some-alt