import csv


def parse_csv(filename):
    """ Convert CSV file to list of dictionaries.

    Source: https://stackoverflow.com/a/21572244/4562156

    :param filename: filename containing CSV data (relative to project root)
    :return: list of dictionaries representing each row with CSV schema as keys
    """
    with open(filename) as f:
        return [
            {k: v for k, v in row.items()}
            for row in csv.DictReader(f, skipinitialspace=True)
        ]