Imagine I have an array or pandas Series with 4 classes, but the classes are varying a lot with each step. This is just an example (you can generate a more realistic one if you