make counter over all elements of a pandas dataframe column code example
Example 1: pandas count rows with value
len(df[df['score'] == 1.0])
Example 2: python- number of row in a dataframe
index = df.index
number_of_rows = len(index)
len(df[df['score'] == 1.0])
index = df.index
number_of_rows = len(index)