pandas show the unique values in column and frequency code example Example: frequency unique pandas df.stack().value_counts()