count all the rows equal to value in panda code example Example: pandas count rows with value len(df[df['score'] == 1.0])