title: extracting a column as a vector from a matrix in python
body: <p>I have a csv file , which I am converting it to a matrix using the following command:</p>
  
  <pre><code>reader = csv.reader(open("spambase_X.csv", "r"), delimiter=",")
  x = list(reader)
  result = numpy.array(x)
  print(result.shape)   #outputs (57,4601)
  </code></pre>
  
  <p>Now I want to extract the first column of the matrix result , which I am doing by the following:</p>
  
  <pre><code>col1=(result[:, 1])
  
  **print(col1.shape)        #outputs (57,)**
  </code></pre>
  
  <p>Why isnt it printing as (57,1).  How can I do that?</p>
  
  <p>TIA</p>