-->

Friday, April 25, 2014

filling the beautiful (and damn) nparray in a loop

Simple, first append vector by vector into a list put everything in a list
 
tmp_values = []

for i in myiterations: 
    tmp_list.append(s_tr.values)
and then convert the list into a numpy array
tst=np.array(tmp_list,dtype=float)
tst[:,1]

No comments:

Post a Comment