how to get the row number of a value in pandas code example Example: pandas count rows with value len(df[df['score'] == 1.0])