find the counts of a df based on a column code example Example: number of times a value occurs in dataframne df['a'].value_counts()