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