[Tutor] Convert structured 1D array to 2D array

Ek Esawi esawiek at gmail.com
Fri Feb 26 11:46:42 EST 2016

Hi All—

I used genfromtxt to read a file with multiple data types. The result was a
1D array of tuples; for example

[(1, 2, 3), (‘a’, b’, ’c’), (‘12/12/2009’, ’2/4/2014’, ‘3/4/200)’]

I am trying to convert this structured array to a 2D array. Is this
possible where the data types in the 1D array are preserved?

Thanks in advance-EKE

More information about the Tutor mailing list