title: How to handle ZeroDivisionError inside numpy array
body: <p>I have two big numpy arrays, I need to divide them.</p>
  
  <p>Since I am working on Python 32-bits, and the arrays are too big, to avoid <code>FloatingPointError</code>, I am doing, for example:</p>
  
  <pre><code>x = numpy.array([...],dtype=object)
  y = numpy.array([...].dtype=object)
  </code></pre>
  
  <p>The problem is that, inside the array <code>y</code>, some elements can be 0.0</p>
  
  <p>So, my question, how to handle the calculation <code>x/y</code> and avoid <code>ZeroDivisionError</code>.</p>
  
  <p>For exmaple, I would like to force <code>nan</code> if the element in <code>y</code> is 0. So that, for that particular element inside the array, the calculation <code>x/y=nan</code></p>