mean = sum(data) / len(data)
if slope:
x = range(len(data))
m, intercept, r_value, p_value, std_err = stats.linregress(x,data)
m = abs(m)
if pct:
mean = sum(data) / len(data)
if slope:
x = range(len(data))
m, intercept, r_value, p_value, std_err = stats.linregress(x,data)
m = abs(m)
if pct: