I have three lists,
list1=['10','20','30']
list2=['40','50','60']
list3=['70','80','90']
I want to create a numpy array from these lists. I am using the foloowing code:
import numpy as np
list1=['10','20','30']
list2=['40','50','60']
list3=['70','80','90']
data = np.array([[list1],[list2],[list3]])
print data
I am getting output as:
[[['10' '20' '30']]
[['40' '50' '60']]
[['70' '80' '90']]]
But I am expecting output as:
[[10 20 30]
[40 50 50]
[70 80 90]]
Can anybody plz help me on this?