I have a dataset whose Label is 0 or 1.
I want to divide my data into a testing and a training data sets. For this, I used the
train_test_split
method from scikit-learn at first.
But I want to select the test data in such a way that 10% of them are from class 0 and 90% are from class 1.
How can I do this?