我很难在飞行中创建numpy
2D阵列。动态创建动态2D numpy阵列
所以基本上我有一个for循环这样的事情。
for ele in huge_list_of_lists:
instance = np.array(ele) # creates a 1D numpy array of this list
# and now I want to append it to a numpy array
# so basically converting list of lists to array of arrays?
# i have checked the manual.. and np.append() methods
that doesnt work as for np.append() it needs two arguments to append it together
任何线索?