human
Complete the below
def display(lists, rates, allpvalues, f, ignore_col, sum='Augment    Rate', prefix0=None, prefix1=None, prefix2=None, prefix3=None):

    ''''Display lists data to standard format
    param lists: row data lists
    param rates: augment rates lists
    param f: result output file
    param ignore_col: do not display some columns
    param sum: compare result summary
    param prefix0: output prefix in head lines
    param prefix1: output prefix in Avg/SD lines
    param prefix2: output prefix in Diff Avg/P-value lines
    param prefix3: output prefix in total Sign line'
    '''
assistant
#Here is Python code to fix in head lines
.
    def str_ignore(str, split=False):
        str = str.split('|')
        for i in range(ignore_col):
            str[i] = '    '
        if split:
            return '|'.join(str[ignore_col:])
        return '|'.join(str)
    def tee_line(content, file, n=None):
        fd = open(file, 'a')
        print content
        str = ''
        str += '<TR    ALIGN=CENTER>'
        content = content.split('|')
        for i in range(len(content)):
            if (n and (i >= 2) and (i < (ignore_col + 2))):
                str += ('<TD    ROWSPAN=%d    WIDTH=1%%    >%s</TD>' % (n, content[i]))
            else:
                str += ('<TD    WIDTH=1%%    >%s</TD>' % content[i])
        str += '</TR>'
        fd.write((str + '\n'))
        fd.close()
    for l in range(len(lists[0])):
        if (not re.findall('[a-zA-Z]', lists[0][l])):
            break
    tee('<TABLE    BORDER=1    CELLSPACING=1    CELLPADDING=1    width=10%><TBODY>', f)
    tee((('<h3>==    %s    ' % sum) + '==</h3>'), f)
    category = 0
    for i in range(len(lists[0])):
        for n in range(len(lists)):
            is_diff = False
            for j in range(len(lists)):
                if (lists[0][i] != lists[j][i]):
                    is_diff = True
                if ((len(lists) == 1) and (not re.findall('[a-zA-Z]', lists[j][i]))):
                    is_diff = True
            pfix = prefix1[0]
            if (len(prefix1) != 1):
                pfix = prefix1[n]
            if is_diff:
                if (n == 0):
                    tee_line((pfix + lists[n][i]), f, n=(len(lists) + len(rates)))
                else:
                    tee_line((pfix + str_ignore(lists[n][i], True)), f)
            if ((not is_diff) and (n == 0)):
                if ('|' in lists[n][i]):
                    tee_line((prefix0 + lists[n][i]), f)
                elif ('Category:' in lists[n][i]):
                    if ((category != 0) and prefix3):
                        if (len(allpvalues[(category - 1)]) > 0):
                           ...