I have a numpy array (10,1). I would like to replace the values inside this array with either 1 for the cell with the highest value or 0 for all other items. What the easiest pythonic way to do this please
test_array= [[0.24330683]
[0.40597628]
[0.33086422]
[0.19425666]
[0.32084166]
[0.30551688]
[0.14800594]
[0.18241316]
[0.14760117]
[0.31546239]]