# Write a Python program to Ways to add row/columns in numpy array # Python code to demonstrate# adding columns in numpy arrayimport numpy as npini_array = np.array([[1, 2, 3], [45, 4, 7], [9, 6, 10]])# printing initial arrayprint("initial_array : ", str(ini_array));# Array to be added as columncolumn_to_be_added = np.array([1, 2, 3])# Adding column to numpy arrayresult = np.hstack((ini_array, np.atleast_2d(column_to_be_added).T))# printing resultprint ("resultant array", str(result))