def format_top(data):
    result = []
    if data:
        if 'Titles' in data:
            result.append(data['Titles'])
        if 'Processes' in data:
            for process in data['Processes']:
                result.append(process)
    result = tabulate(result, headers='firstrow').split('\n')
    return result
Format "top" output
dataset/ETHPy150Open j-bennet/wharfee/wharfee/formatter.py/format_top