pyDataset get current iteration

looping thru pyDataset, is it possible to get current iteration(built-in)?

for row in pyDs:
    dict={}
    dict['rowIndex'] = <current iteration>
    instances.append(dict)

Try something like this:

for index, row in enumerate(pyDs):
    # ...
5 Likes

Awesome!