I have two lists with strings which I want to concatenate elementwise into a n x n matrix. I have tried the below code but this only gives me n x 1 list.
row = ['a','b','c']
col = ['a','b','c']
matrix = map(''.join, zip(row,col))
The expected output would be a matrix like this:
[['aa','ab','ac'],
['ba','bb','bc'],
['ca','cb','cc']])
Is there a solution using either regular python or numpy to accomplish this?