I have written a function to get a sequence for LSTM/GRU sequence model based on group ID. I am not getting expected output.
Python Function:
def windo