[Numpy-discussion] Conversion from numarray to numpy

Eike Welk eike.welk@gmx....
Wed Jul 11 10:32:38 CDT 2007


On Wednesday 11 July 2007 12:52, Michał Szpadzik wrote:
> I would like to know how change this True/False to 1/0

To convert an array of bool to an array double, you can use the 
function numpy.doube( ... ). The function numpy.int32( ... ) converts 
to integers.

Regards, 
Eike.


More information about the Numpy-discussion mailing list