I have a panda data frame with 3 labels and I want to create sliding windows, here is my code however this code retrieves the most often used label in the segment while I wa