Is there a function that can be applied to a pandas column that is equivalent to the index function of python list? I.e. search a column for a particular value, then break when it encounters first instance of that value and return the index.
eg.
l = ['a','b','b']
l.index('b')
returns 1.
The closest I can find in Pandas , if the same data was in a column:
(l == 'b').nonzero()[0][0]
Which seems a bit wasteful in instances where I have a big column with lots of repeat values