

def format_number(n):
    "\n    >>> format_number(1000)\n    '1,000'\n    >>> format_number(1234567)\n    '1,234,567'\n    "
    ar = list(str(n))
    for i in range(len(ar))[::(- 3)][1:]:
        ar.insert((i + 1), ',')
    return ''.join(ar)

dataset/ETHPy150Open ngsutils/ngsutils/ngsutils/support/ngs_utils.py format_number/original