NumPy

numpy.nditer.index

attribute

nditer.index