def format_bucket(bucket):
    """Formats the bucket to a string.

    :params ``int`` bucket:
        Bucket number
    :returns:
        ``str`` - Formatted (0 padded) bucket number.
    """
    return '{:06d}'.format(bucket)