list_one = [7, 6, 5]list_two = [4, 3, 2]
#horizontallymerged_list = list_one + list_twomerged_list
[7, 6, 5, 4, 3, 2]
#vertically import numpy as np np.vstack((list_one,list_two))
array([[7, 6, 5], [4, 3, 2]])
Get better at data science interviews by solving a few questions per week
Find a bug? Submit a suggested change on Github, or message me on Twitter.