import numpy as np # numpy.array() arr = np.array([1, 2, 3, 4, 5]) print(arr) # numpy.zeros() zeros_arr = np.zeros((2, 3)) print(zeros_arr) # numpy.ones() ones_arr = np.ones((3, 2)) print(ones_arr) # numpy.random.rand() random_arr = np.random.rand(4) print(random_arr) # numpy.reshape() arr = np.array([1, 2, 3, 4, 5, 6]) reshaped_arr = np.reshape(arr, (2, 3)) print(reshaped_arr) # numpy.concatenate() arr1 = np.array([1, 2, 3]) arr2 = np.array([4, 5, 6]) concatenated_arr = np.concatenate((arr1, arr2)) print(concatenated_arr) # numpy.vstack() arr1 = np.array([1, 2, 3]) arr2 = np.array([4, 5, 6]) vertical_stack = np.vstack((arr1, arr2)) print(vertical_stack) # numpy.hstack() arr1 = np.array([1, 2, 3]) arr2 = np.array([4, 5, 6]) horizontal_stack = np.hstack((arr1, arr2)) print(horizontal_stack)