how to sample/group rows of dataframe to fix specific distributions within a group?
how to sample/group rows of dataframe to fix specific distributions within a group? Question: I have a DataFrame c containing a columns a. import numpy as np a = np.random.randint(0,10, size=(100)) c = pd.DataFrame(a, columns=[‘a’]) I want to make random grouping of the rows of c such that there are 5 rows within each group …