def printReport(parsedData, formatting):
    """
    Prints the minimum, maximum and average of every measurement in the data
    Arguments:
        parsedData: The
        formatting: The output format of the report. "pretty" or "csv"
    """
    if formatting == 'pretty':
        colwidths = [50, 17, 17, 17]
        separator = '\t'
    elif formatting == 'csv':
        colwidths = [0, 0, 0, 0]
        separator = ','
    print('measurement'.ljust(colwidths[0]) + separator + 'min'.ljust(
        colwidths[1]) + separator + 'average'.ljust(colwidths[2]) +
        separator + 'max'.ljust(colwidths[3]))
    if formatting == 'pretty':
        print('-' * 120)
    for resource, data in parsedData.items():
        datalength = len(data)
        for i in range(1, datalength):
            biggest = -1e+40
            smallest = 1e+40
            average = 0
            for n in data[i]:
                if n > biggest:
                    biggest = n
                if n < smallest:
                    smallest = n
                average += n
            average /= len(data[i])
            if data[0][i - 1] != 'value':
                line = resource + '-' + data[0][i - 1]
            else:
                line = resource
            print(line.ljust(colwidths[0]) + separator + str(smallest).
                ljust(colwidths[1]) + separator + str(average).ljust(
                colwidths[2]) + separator + str(biggest).ljust(colwidths[3]))
