i have array np.array two dimensional array
[[8, 12, 5, 2], [12,15, 6,10], [15, 8, 12, 5], [12,15,8,6]]
i want to create another 2d array , (each number in array,how many repeated,locations)
(2,1,[1,4]), (5,2,[1,3],[3,4]) ,(6,2,[2,3],[4,4]) , (8,3,[1,1],[3,1],[4,3]) (12,4,[1,2],[2,1],[3,3],[4,1]) ,(15,3,[2,2],[3,1],[4,2])
I'd like to generate comparisons between rows and columns.
to explain (let take no. 15 as example)
repeated:3
locations:[2,2],[3,1],[4,2]