open_in_new
content_copy
# Drop rows with missing values df = df.dropna() # Fill missing values df = df.fillna(value=0)