np.column_stack in python code example Example: python combine two columns into matrix list(zip(*[col1,col2,col3]))