How to convert a binary classes column to numpy array
|Added at||2016-12-31 14:12|
I have an array like this as the label column (2 labels : 0 and 1) , for example:
Supposed that I want to convert this array to a numpy matrix with the shape (5,2) (5 elements, 2 labels) . How can I do that in a trivial way by using any util library?
The outcome I want is like this :