import csv


def import_data(file):

    """
    Imports instruction data from a .csv file, at the specified filepath

    :param file: file
        File object, to be read by the CSV reader
    :return: list
        A list of dictionaries, per row in the file, with the keys specified in the headers list
        below

    """

    headers = [
        'entity', 'buy_sell', 'agreed_fx', 'currency', 'instr_date', 'settle_date', 'units', 'ppu',
    ]

    # Create CSV reader object, using header schema defined to generate dictionary
    csv_reader = csv.DictReader(file, headers)

    # Create list of dictionaries from reader
    data_rows = [file_row for file_row in csv_reader]

    return data_rows