# Drop rows with missing values
df = df.dropna()

# Fill missing values
df = df.fillna(value=0)