title: Convert Pandas rows into a matrix of arrays
body: <p>I want to convert each row from a pandas dataframe into an array, and then create a matrix with them.</p>
  
  <p>I know how to do it with columns:</p>
  
  <pre><code>X = np.matrix([df['colA'].values,
   df['ColB'].values])
  </code></pre>
  
  <p>How can I do it by columns?</p>
  
  <p>More details:</p>
  
  <p>this is a sample of my dataframe:
  <a href="https://i.stack.imgur.com/0N4Wa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0N4Wa.png" alt="enter image description here"></a></p>
  
  <p>The output I want is this (please do not pay attention to the digits now):</p>
  
  <pre><code>[[36.10062, -115.2948],  #row 0
   [36.10062, -116.2948],  #row 1
   [34.10062, -112.2948],  #row 2
   [38.10062, -111.2948]]  #row 3
  </code></pre>