I have a numpy 2D array of arrays:
samples = np.array([[1,2,3], [2,3,4], [4,5,6], [1,2,3], [2,3,4], [2,3,4]])
I need to count how many times an array is inside of the array occurs above like:
counts = [[1,2,3]:2, [2,3,4]:3, [4,5,6]:1]
I'm not sure how this can get counted or listed out the way I have above to know which array and counts are connected to each other, any help is appreciated. Thank you!
