title: Getting max value from a list with None elements
body: <p>I'm trying to get maximal value from a list object that contains nonetype using the following code:</p>
  
  <pre><code>import numpy as np
  
  LIST = [1,2,3,4,5,None]
  np.nanmax(LIST)
  </code></pre>
  
  <p>But I received this error message</p>
  
  <pre><code>'&gt;=' not supported between instances of 'int' and 'NoneType'
  </code></pre>
  
  <p>Clearly <code>np.nanmax()</code> doesn't work with <code>None</code>. What's the alternative way to get max value from list objects that contain <code>None</code> values?</p>