pandas get row number based on column value code example
Example 1: pandas get row from column value
df.loc[df['column_name'] == some_value]
Example 2: pandas count rows with value
len(df[df['score'] == 1.0])
df.loc[df['column_name'] == some_value]
len(df[df['score'] == 1.0])