1import numpy as np
2arr = np.empty((0,3), int)
3print("Empty array:")
4print(arr)
5arr = np.append(arr, np.array([[10,20,30]]), axis=0)
6arr = np.append(arr, np.array([[40,50,60]]), axis=0)
7print("After adding two new arrays:")
8print(arr)
9
10
1A= [[1, 2, 3], [4, 5, 6]]
2np.append(A, [[7, 8, 9]], axis=0)
3
4 >> array([[1, 2, 3],
5 [4, 5, 6],
6 [7, 8, 9]])
7#or
8np.r_[A,[[7,8,9]]]