From: Francesc A. <fa...@ca...> - 2006-10-27 17:01:57
|
A Divendres 27 Octubre 2006 17:58, Joris De Ridder va escriure: > Hi, > > Is the following behaviour of astype() intentional in NumPy 1.0? > > >>> x =3D array([1,2,3]) > >>> x.astype(None) > > array([ 1., 2., 3.]) > > That is, the int32 is converted to float64. Yes, I think the behaviour is intended. This is because 'float64' is the=20 default type in NumPy from some months ago (before the default was 'int_') HTH, =2D-=20 >0,0< Francesc Altet =A0 =A0 http://www.carabos.com/ V V C=E1rabos Coop. V. =A0=A0Enjoy Data "-" |