how to get index values code example
Example 1: how to find item in list python without indexnig
>>> ["foo", "bar", "baz"].index("bar")
1
Example 2: get index number pandas dataframe
df.index[df['BoolCol'] == True].tolist()
>>> ["foo", "bar", "baz"].index("bar")
1
df.index[df['BoolCol'] == True].tolist()