I found this question on going from a list to tuples using an iterator, but I'm dealing with a large data set.
I found this question for going from tuples to a list, actually there's a bunch of questions going from list of tuples to an array, but I haven't found how to go the other direction...
I have:
np.arrray([[ 0 1]
[ 1 1]
[ 2 1]
...,
[1004 3]
[1005 1]
[1006 1]])
I want:
np.arrray([( 0 1)
( 1 1)
( 2 1)
...,
(1004 3)
(1005 1)
(1006 1)])
I don't necessarily need a numpy array of tuples, but I want to do it effciently.