My X is as follows: EDIT1:
Unique ID. Exp start date. Value. Status.
001 01/01/2020. 4000. Closed
001 12/01/2019 4000. Archived
002 01/01/2020. 5000. Closed
002 12/01/2019 5000. Archived
I want to make sure that none of the unique IDs that were in training are included in testing. I am using sklearn test train split. Is this possible?