how to conver a numpy nd array to a list of (n-1)d withou loop
assume we have a array 3d numpy array
arr3d = np.random.randint(1, 100, size=7 * 3 * 6).reshape((7, 3, 6))
with loop (slow solution):
arr_what_i_want= []
for i in range(7):
arr2d = arr3d[i]
arr_what_i_want.append([arr2d])
pass
how to get the "arr_what_i_want" without loop?