def outlier_filter(data, threshold=2):
    data = np.array(data)
    z = np.abs(((data - data.mean()) / data.std()))
    return data[(z < threshold)]
def outlier_filter(data, threshold=2):
    data = np.array(data)
    z = np.abs(((data - data.mean()) / data.std()))
    return data[(z < threshold)]