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

Course Content

Predict rain in Australia

Predict rain in Australia

book
Should we drop NaNs?

Task

Swipe to start coding

  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

Solution

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!

SectionΒ 1. ChapterΒ 2
AVAILABLE TO ULTIMATE ONLY
We're sorry to hear that something went wrong. What happened?
some-alt