Why update outliers

Please why didnt the solution drop the outliers as the problem statement said

I think you are talking about this lesson.


The input to the function is a Dataframe that is created after reading the housing.csv file.


The output is a Dataframe with no NaN values, and all its outliers are in the required range.

The solution is working fine for me.