I am struggling in appending a numpy array to other one..
data_X = load_dataset()
print(data_X.shape) # (6794, 11)
result_array = np.empty((0, 110))
for i in range(0, 1000, 10):
arr_1d = data_X[i:i+10].reshape(1, 110)
np.append(result_array, arr_1d, axis=0)
print(result_array.shape)
Not sure what I am doing wrong.. There is no error but shape of result_array
is (0,110)
. Please help.