title: Converting all non-numeric to 0 (zero) in Python
body: <p>I'm looking for the easiest way to convert all non-numeric data (including blanks) in Python to zeros. Taking the following for example:</p>
  
  <pre><code>someData = [[1.0,4,'7',-50],['8 bananas','text','',12.5644]]
  </code></pre>
  
  <p>I would like the output to be as follows:</p>
  
  <pre><code>desiredData = [[1.0,4,7,-50],[0,0,0,12.5644]]
  </code></pre>
  
  <p>So '7' should be 7, but '8 bananas' should be converted to 0.</p>