how to replace outliers with median in python