pandas find matching rows and select index code example
Example 1: pandas count rows with value
len(df[df['score'] == 1.0])
Example 2: how to get a row of a dataframe with subset columns in python
df.iloc[1:3, 5:7]
len(df[df['score'] == 1.0])
df.iloc[1:3, 5:7]