What is the best way to shuffle/permute each n rows of a data frame in python?
What is the best way to shuffle/permute each n rows of a data frame in python? Question: I want to shuffle each n (window size) rows of a data frame but I am not sure how to do it in a pythonic way. I found answers for shuffling all rows but not for a given …