Removing Outliers Using Standard Deviation in Python

@machinelearnbot 

Such values follow a normal distribution. According to the Wikipedia article on normal distribution, about 68% of values drawn from a normal distribution are within one standard deviation σ away from the mean; about 95% of the values lie within two standard deviations; and about 99.7% are within three standard deviations. As you case see, we removed the outlier values and if we plot this dataset, our plot will look much better. But in our case, the outliers were clearly because of error in the data and the data was in a normal distribution so standard deviation made sense.