number of times a value appears in column pandas code example Example: number of times a value occurs in dataframne df['a'].value_counts()