Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Challenge: Dropping Null Values | Section
Data Manipulation with pandas
Seksjon 1. Kapittel 17
single

single

bookChallenge: Dropping Null Values

Sveip for å vise menyen

If a dataset contains rows with null values, consider removing them. In pandas, you can do this using the dropna() method.

Oppgave

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.

Løsning

Switch to desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 1. Kapittel 17
single

single

Spør AI

expand

Spør AI

ChatGPT

Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår

some-alt