How to get indices value in a separate column as effienctly as possible? i know how to do this in a loop, but i wonder what other ways there are?
from this ndarray
[[ 0.71587892 0.72278279 ]
[ 0.72225173 0.73340414 ]
[ 0.7259692 0.72862454 ]]
to this
[[0 0.71587892 0.72278279 ]
[1 0.72225173 0.73340414 ]
[2 0.7259692 0.72862454 ]]