Return true if all values in sequence are within n MADs

def within_n_mads(n, series):
    """Return true if all values in sequence are within n MADs"""
    mad_score = (series - series.mean()) / series.mad()
    return (mad_score.abs() <= n).all()