Lower cutoff of age: -13.880374349943303 Upper cutoff of age: 73.27860964406094 survived pclass sex age ... deck embark_town alive alone 630 1 1 male 80.0 ... A Southampton yes True 851 0 3 male 74.0 ... NaN Southampton no True [2 rows x 15 columns] survived pclass sex age ... deck embark_town alive alone 0 0 3 male 22.0 ... NaN Southampton no False 1 1 1 female 38.0 ... C Cherbourg yes False 2 1 3 female 26.0 ... NaN Southampton yes True 3 1 1 female 35.0 ... C Southampton yes False 4 0 3 male 35.0 ... NaN Southampton no True [5 rows x 15 columns]
Here, we are also plotting a box plot on the age column of the dataset after removing the outliers. The box plot now looks like the following:
As we can see some outliers are removed. But, we still have some outliers after removing outliers using the mean and standard deviation of data, in this case.






0 Comments