I have data table which has string and integer columns such as:
test_data = [('A',1,2,3),('B',4,5,6),('A',1,2,3)]
I need unique rows, therefore I used numpy unique function:
summary, repeat = np.unique(test_data,return_counts=True, axis=0)
But after then my data types are changed. Summary is:
array([['A', '1', '2', '3'],
['B', '4', '5', '6']], dtype='<U1')
All data types are now string. How can I prevent this change? (Python 3.7, numpy 1.16.4)