I have a m*n numpy matrix of float type. I am going to use the Counter function (from collections) to derive count of certain combination of matrix elements. On experimenting, I found that Counter() requires string value entries to iterate whereas my numpy matrix was by default a float type.
Using dtype while declaring the numpy matrix of zeros doesnt help.
So, I thought of converting each element of the numpymatrix into a string. But, its not working. How do i do it?
Result: