import numpy as np arr = np.array([]) arr = np.append(arr, np.array([1, 2])) # [1, 2] arr = np.append(arr, 2) # [1, 2, 2]