title: Most frequent element in NumPy ND array
body: <p>I'm trying to find and print the most common number in a matrix, using numpy if possible.</p>
  
  <p>This list was given (made it a matrix using numpy.matrix(list)):</p>
  
  <pre><code>import numpy as np
  list = [[2,4,1,6,3], [2,4,1,8,4], [6,5,4,3,2], [6,5,4,3,4], [1,2,3,4,5]]
  matrix=np.matrix(list)
  </code></pre>
  
  <p>for this example i should be getting: 4
  (as it is the most  common number)</p>