pandas get frequency of unique vlaues code example
Example 1: frequency unique pandas
df.stack().value_counts()
Example 2: relativefrequencies of the unique values pandas
df.value_counts(normalize=True)
df.stack().value_counts()
df.value_counts(normalize=True)