find all values count in dataframe code example Example: pandas count all values in whole dataframe df.stack().value_counts()