I'm using python 3.x. I have a numpy array of shape (29982,29982) & a list of shape 29982. The sample array looks like
array([[1,5,7,2,9...],
[2,6,4,1,5...],
[7,9,1,12,4...],
...
...
[6,8,13,2,4...]])
The sample list looks like
['John','David','Josua',......,'Martin']
I would like to get a pandas dataframe combining this array & list such that array value should be greater than 5. The dataframe should look like
'John' 'David' 'Josua'
'John' 0 0 7
'David' 0 6 0
'Josua' 7 9 0
....
'Martin' 6 8 13
Can you please suggest me how should I do it?