I want to partition a pandas DataFrame into ten disjoint, equally-sized, randomly composed subsets.
I know I can randomly sample one tenth of the original pandas DataFrame using:
partition_1 = pandas.DataFrame.sample(frac=(1/10))
However, how can I obtain the other nine partitions? If I'd do pandas.DataFrame.sample(frac=(1/10))
again, there exists the possibility that my subsets are not disjoint.
Thanks for the help!