title: How to convert a binary classes column to numpy array
body: <p>I have an array like this as the label column (2 labels : 0 and 1) , for example:</p>
  
  <pre><code>[0,1,0,1,1]
  </code></pre>
  
  <p>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?</p>
  
  <p>The outcome I want is like this :</p>
  
  <pre><code>[[0,1][1,0],[0,1],[1,0],[1,0]]
  </code></pre>