get dataframe index of a value code example
Example 1: finding the index of an item in a pandas df
print(df[df['Name']=='Donna'].index.values)
Example 2: get index number pandas dataframe
df.index[df['BoolCol'] == True].tolist()
print(df[df['Name']=='Donna'].index.values)
df.index[df['BoolCol'] == True].tolist()