python pandas count number of rows with value code example
Example 1: pandas count rows with value
len(df[df['score'] == 1.0])
Example 2: Returns the number of rows in this DataFrame
# Returns the number of rows in this DataFrame
df.count()
# 2