If the dataset contains n=385, now I want to split so each chunk contains the points like 95,95,95,95,5. Now I want to add the last 5 points to previous chunk
I am running on jupyter notebook
def chunks(l, n):
return [l[i:i+n] for i in range(0, len(l), n)]
slice =chunks(dataframe, int(len(dataframe)/4))
I expected the output into equal sized