def mad ( v ) : return np . median ( np . abs ( v - np . median ( v ) ) )
plot standard deviation of a column in python
MAD -- Median absolute deviation . More robust than standard deviation .
def mad(v):
    """MAD -- Median absolute deviation. More robust than standard deviation.
    """
    return np.median(np.abs(v - np.median(v)))