I got the following array:
array([['A', 0.05],
['B', 0.09],
['C', 0.13]]
I want to make a new column and assign a label to the items A, B and C, based on the second column. If the item is above 0.10, it has to get the label '2'. If it is below 0.10, it has to get the label '1'. So my desired output is:
array([['A', 0.05,'1'],
['B', 0.09,'1'],
['C', 0.13,'2']]
How can I do this?