Inter Quartile Range
The Inter Quartile Range can be calculated from the 75% and 25% Quartiles like this:
It is quite robust against Outlier, just like the Median.
Python Implementation
def remove_outliers(values, threshold=1.5)
IQR = quantile75 - quantile25
values = values >= quantile75 + 1.5 * IQR
values = values <= quantile25 1.5 * IQR
return values