counts_to_text

function of dascore.utils.display source

counts_to_text(
    counts ,
    limit: int | None[int, None] = None,
)-> ‘Text’

Render a mapping of name to count as a: 2, b: 1.

Names past limit (config’s display_max_items) are summarized rather than dropped silently.