pandas column frequency count code example Example: frequency unique pandas df.stack().value_counts()