Skip to content

freq / freqs [terminology]

Terminology

Usage

  • Use freq for one item's frequency.
  • Use freqs for a mapping of items to frequencies.
  • counts and freqs are often equivalent, but their emphasis differs:
    • counts: mutable occurrence counters
    • freqs: frequency information used for comparison or scheduling
freqs = Counter(tasks)

for task, freq in freqs.items():
    buckets[freq].append(task)