python get dataframe index as list code example
Example 1: python index of item in list
list.index(element)
Example 2: finding the index of an item in a pandas df
print(df[df['Name']=='Donna'].index.values)
list.index(element)
print(df[df['Name']=='Donna'].index.values)