However, using zero on the right side raised an error.
Working with enumerate in Python The enumerate function in Python is commonly used instead of the for loop.
1 2 for age, point in zip df[ 'age'], df[ 'point'] : print age, point If you want to get the index line name , use the index attribute.
.
values : print i,j Output: 0 15 1 18 2 20.
The enumerate function keeps track of two values: the index and the value of the item.