Going further with anomaly detection
To go further with anomaly detection use cases, you can try out using different datasets or even a dataset of your own use case. As you have seen in the example, data points are inputted as a dictionary. In the current example, you used univariate data points: only one entry in the dictionary.
In practice, you generally have multivariate problems, and you would have multiple variables in your input. Models may be able to fit better in such use cases.