I have a very basic question in numpy arrays:
My array looks something like this:
Array = [["id1", "1.0"],["id2", "0.0"]]
I want to read the second element of the array and replace with an another character. Its like
for i in range(0,len(array)):
if array[i] == "0.0":
array[i] = "ClassA"
else
array[i] = "ClassB"
How to achieve this. I am not able to read "0.0" or "1.0" correctly. Please help.
numpytag? these are notnumpyarrays.