getting the frequency of occurence of a value of a dataframe column stack overfllow code example Example: number of times a value occurs in dataframne df['a'].value_counts()