def formatBuckets(buckets):
  """
  Formats buckets into a list of strings

  :param buckets: buckets to be formatted

  """
  timeList = []
  for i, bucket in enumerate(buckets):
    formatStr = '{0:4,.3g}' if i < len(buckets) -1 else '>>{0:4,.3g}'
    timeList.append(formatStr.format(bucket))
  return timeList