I have a dataset with 112k rows and 2 columns. How do I sample equaly from this dataset to obtain a small data set of like 10k rows?
I mean equaly because this dataset has 56k rows with a column name True=1
and 56k rows with column ``´True=0```.
So i want to sample 10k row with 5k with column True=1
and 5k with True=0
.
Thanks