Difference between numpy.float and numpy.float64
<p>There seems to be a subtle difference between numpy.float and numpy.float64.</p>

<pre><code>&gt;&gt;&gt; import numpy as np
&gt;&gt;&gt; isinstance(2.0, np.float)
True
&gt;&gt;&gt; isinstance(2.0, np.float64)
False
</code></pre>

<p>Can someone clarify this? Thanks</p>

<p>This would seem to be the difference between a 32-bit floating point number and a 64-bit floating point number (in C, a float vs. a double), and 2.0 ends up being a 32-bit floating point number.</p>

python numpy types