Mean based splitting

how can I randomly partition a dataset into smaller subsets using a mean based splitting approach with python. Thanjs

© Copyright 2013-2020 Analytics Vidhya