count no of rows with a value in python dataframe code example Example: pandas count rows with value len(df[df['score'] == 1.0])