(counts: collections.Counter)
return [(k, v / total_count) for k, v in sorted(counts.items())]
Convert to percentage.
Convert to percentage.
Convert to percentage .
def _get_percentage(counts: collections.Counter) -> List[Tuple[int, float]]:
  """Convert to percentage."""
  total_count = float(sum(counts.values()))
  return [(k, v / total_count) for k, v in sorted(counts.items())]
def _get_percentage ( counts : collections . Counter ) -> List [ Tuple [ int , float ] ] : total_count = float ( sum ( counts . values ( ) ) ) return [ ( k , v / total_count ) for k , v in sorted ( counts . items ( ) ) ]