title: In Python how do I get the max value of a 'column' in a 2D array?
body: <p>In Python how do I get the max value of a 'column' in a 2D array?</p>
  
  <p>I can see that trainingData has a max and min which is the max and min values of the entire 2D array but I would like the max value for each "column".</p>
  
  <p>I've tried several things and this is my last attempt but it didn't seem to work:</p>
  
  <p>creating it:</p>
  
  <pre><code>trainingData = []
  </code></pre>
  
  <p>filling it:</p>
  
  <pre><code>for row in csv_reader:
      trainingData.append(row)
  </code></pre>
  
  <p>converting to np</p>
  
  <pre><code>npTrainingData = np.array(trainingData)
  </code></pre>
  
  <p>printing it:</p>
  
  <pre><code>for x in range(1, 12):
      print(np.max(npTrainingData[:x]))
  </code></pre>
  
  <p>I've scoured stack overflow but nobody seems to solve this at all but have a ton of similar questions.</p>
  
  <p>Thanks,
  John</p>