I want to divide my data set into train and test data. but I have one column as a group.All member of a group must be in train or test. for example if the group column is like this:
group
1
1
1
1
1
2
2
2
3
3
if one of the row of first group is in train set the first 5 rows must be in there and ...