std())[-2]
if isnan(last):
anomaly = "outlier"
+ last = list(pd_data)[-1]
elif last < (trend - 3 * t_stdev):
anomaly = "regression"
elif last > (trend + 3 * t_stdev):
rel_change = int(relative_change(float(trend), float(last)))
tbl_lst.append([name,
- round(float(last) / 1000000, 2),
+ round(float(trend) / 1000000, 2),
change,
rel_change,
anomaly])