I'm new to Python & Pandas.
I want to find the index of a certain value (let's say security_id
) in my pandas dataframe, because that is where the columns start.
(There is an unknown number of rows with irrelevant data above the columns, as well as a number of empty 'columns' on the left side.)
As far as I see, the isin method only returns a boolean on whether the value exists, not its index.
How do I find the index of this value?