Concatenate two arrays (lists) in Python
Python
Set up arrays
list_one = [7, 6, 5]list_two = [4, 3, 2]
Concatenate arrays horizontally
#horizontallymerged_list = list_one + list_twomerged_list
[7, 6, 5, 4, 3, 2]
Concatenate arrays vertically
#vertically
import numpy as np
np.vstack((list_one,list_two))
array([[7, 6, 5], [4, 3, 2]])