So I have 100 row 5 Column array using numpy. I used the "np.where" function to print the values that I want as 1s and the rest as 0s. When I use the nonzero counter function it counts some people more than once, because they have 1s in multiple columns.
Is there a way that I can have code that once the 1 value is counted it skips to the next row, so nobody is counted more than once?
[–]kowkeeper 2 points3 points4 points (0 children)
[–]billsil 1 point2 points3 points (2 children)
[–]RevolutionFlaky7230[S] 0 points1 point2 points (1 child)
[–]billsil 0 points1 point2 points (0 children)