I am trying to convert a list of lists into an array and something weird is happening.
For example, if I declare the list as:
a=[]
a.append(['a',1,10,100])
a.append(['b',2,20,200])
a.append(['c',3,30,300])
a.append(['d',4,40,400])
and then convert into a vector by
a=np.array(a)
the end result is
[['a','1','1','1'],['b','2','2','2'],['c','3','3','3'],['d','4','4','4']]
I'm a total Python beginner, but from what I've read by using np.array everything in the vector is converted into a string (please correct me if I'm wrong). Why are the zeroes being ignored here and what can I do to fix it?