Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте Challenge: Dropping Null Values | Section
Data Manipulation with pandas
Секція 1. Розділ 17
single

single

bookChallenge: Dropping Null Values

Свайпніть щоб показати меню

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

Завдання

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.

Рішення

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 1. Розділ 17
single

single

Запитати АІ

expand

Запитати АІ

ChatGPT

Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат

some-alt