Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Should we drop NaNs? | Predict rain in Australia
Predict rain in Australia
course content

Course Content

Predict rain in Australia

Predict rain in Australia

bookShould we drop NaNs?

Task

  1. Drop each row if it contains at least one NaN drom df. Don't intialize the df data frame with the result (we need origin df with NaNs in the future).
  2. Find the ratio of columns at the origin data frame df and the data frame after drop NaNs.
  3. Print this ratio

Mark tasks as Completed
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Task

  1. Drop each row if it contains at least one NaN drom df. Don't intialize the df data frame with the result (we need origin df with NaNs in the future).
  2. Find the ratio of columns at the origin data frame df and the data frame after drop NaNs.
  3. Print this ratio

Mark tasks as Completed
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Section 1. Chapter 2
AVAILABLE TO ULTIMATE ONLY
some-alt