value count in python but not in descending order code example Example: relativefrequencies of the unique values pandas df.value_counts(normalize=True)