January 2019
Beginner
318 pages
8h 23m
English
import numpy as np# input arrayin_arr1 = np.array([[ 1, 2, 3], [ -1, -2, -3]] )print ("1st Input array : \n", in_arr1) in_arr2 = np.array([[ 4, 5, 6], [ -4, -5, -6]] )print ("2nd Input array : \n", in_arr2) # Stacking the two arrays horizontallyout_arr = np.hstack((in_arr1, in_arr2))print ("Output stacked array :\n ", out_arr)
Read now
Unlock full access