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