Exercise: Missing Values
Use the concepts you’ve learned so far to solve this exercise.
We'll cover the following...
Consider the following DataFrame:
Press + to interact
import pandas as pdimport altair as altimport numpy as npdf = pd.DataFrame({'x': [1,2,3,4,1,2,3,4],'y': [1, 3,np.nan, 3,2, np.nan, 4, 4],'z': ['orange', 'orange', 'orange', 'orange', 'apple', 'apple','apple', 'apple']}).dropna()print(df)
...