how to iterate over pandas series to get only the index code example
Example: pandas core series traverse
for item in series: # Here type(series) = pandas.core.series.Series
print (item)
for item in series: # Here type(series) = pandas.core.series.Series
print (item)