Split a dataset into train/validation/test reproducibly with a seed, stratified ...
https://denk.halowerk.com/v1/dataset-splitOverview
Split a dataset into train/validation/test reproducibly with a seed, stratified by label and optionally grouped so related rows never cross splits. Assigns each row to train, validation or test using the given fractions and a seeded generator, so the same input and seed always give the same split. With a label field the split is stratified per label; with a group field all rows of one group (for example one customer or one document) land in the same split to prevent leakage.