frequency distribution of a pandas dataframe code example Example: frequency unique pandas df.stack().value_counts()