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