def analyze_series(eps, datapoints):
    import matplotlib.pyplot as plt
    from numpy import mean, std

    upper_err = []
    core_err = []
    lower_err = []

    for e in eps:
        samples = sorted(datapoints[e])
        core_err.append(mean(samples))
        upper_err.append(mean(samples) + (len(samples)**0.5) / std(samples))
        lower_err.append(mean(samples) - std(samples) / (len(samples)**0.5))

    return lower_err, core_err, upper_err
dataset/ETHPy150Open gdanezis/petlib/examples/tormedian.py/analyze_series/swapped operands of `/`