import csv


def loadStatisticsFromCsv(pathToCsvFile):
    """
    Load data from the input csv file.

    The data will be output in a list of dict, with each list element containing
    data from one row of the csv file.
    """
    with open(pathToCsvFile, mode='r') as csvFile:
        csvDictReader = csv.DictReader(csvFile)
        header = csvDictReader.fieldnames
        data = [row for row in csvDictReader]
        return (header, data)