[Numpy-discussion] dtyping with .astype()

Pauli Virtanen pav@iki...
Mon Oct 17 05:17:43 CDT 2011

13.10.2011 12:59, Alex van der Spek kirjoitti:
> gives me a confusing result. I only asked to name the columns and change their 
> types to half precision floats.

Structured arrays shouldn't be thought as an array with named columns,
as they are somewhat different.

> What am I missing? How to do this?

np.rec.fromarrays(arr.T, dtype=dt)

More information about the NumPy-Discussion mailing list