...

/

Exercise: Missing Values

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 pd
import altair as alt
import numpy as np
df = 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)
...