Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen Challenge: Dropping Null Values | Section
Data Manipulation with pandas
Abschnitt 1. Kapitel 17
single

single

bookChallenge: Dropping Null Values

Swipe um das Menü anzuzeigen

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

Aufgabe

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ösung

Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 1. Kapitel 17
single

single

Fragen Sie AI

expand

Fragen Sie AI

ChatGPT

Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen

some-alt