pandas count values with condition in row code example Example: pandas count rows with value len(df[df['score'] == 1.0])