convert list of tuple () to numpy matrix
try this:
a = [(1,2),(2,49),(3,45)]
print map(list,a)
I want to convert a list of tuple like a = [(1,2),(2,49),(3,45)]
to numpy matrix : [[1,2],[2,49],[3,45]]
Can anyone help me?
thanks in advance