So I am Currently making a python machine learning program and I want to split the data frame into two. One will be containing the values of labels equal to 1 and the other equal to zero.
This is the example of my data frame so far.
Capital-loss Hours-per-week Label
0 0 40 0
1 0 13 1
2 0 40 0
3 0 40 1
4 0 40 0
I am currently unsure of how to split this based on the value of the label, or the best method to do this.