Anomaly detection

In anomaly detection while calculating “mean” value it always throws an error
StatisticalError: mean must have one data point

Mn=statistics.mean(history_data)

what should i do now?

@onlynavv Please share a screenshot of the code and error so that we can help you resolve this issue.

once check the loop where are collecting the data points ,you may be passing the empty list.
We cant calculate mean of a empty list.