dataframe count number of rows with value code example
Example 1: pandas count rows with value
len(df[df['score'] == 1.0])
Example 2: get number of rows pandas
number_of_rows = len(df)
len(df[df['score'] == 1.0])
number_of_rows = len(df)