how to get the row no. based on a value in dataframe code example Example: pandas get row from column value df.loc[df['column_name'] == some_value]