0

I have a Pandas DF with a column "label". Let's say there are five rows in the DF and the values of labels are as follows [1, 1, 1, 0, 0]. Is there a built-in function in Pandas so I can remove one row with label 1 so the values are evenly distributed (count of 0's and 1's is the same)?

hauki_123
  • 1
  • 1

0 Answers0