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

Danny Yoo dyoo at hashcollision.org
Fri Feb 26 21:28:01 EST 2016


On Feb 26, 2016 9:29 AM, "Ek Esawi" <esawiek at gmail.com> wrote:
>
> 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.

What would be the expected result for the case you're presenting above?
Let us know: that particular detail matters.


More information about the Tutor mailing list