get number of rows for each value pandas code example
Example 1: get number of rows pandas
number_of_rows = len(df)
Example 2: pandas count freq of each value
df['column'].value_counts()
number_of_rows = len(df)
df['column'].value_counts()