from typing import List
from typing import Dict


def construct_rows(header: list, rows: list) -> List[Dict]:
    """Construct a list of csv row dicts.\n

    Arguments:
        header {list} -- csv header\n
        rows {list} -- csv contents\n
                        to warp if there is only a single row, e.g. [row]\n

    Returns:
        List[Dict] -- a list of csv rows\n
    """
    row_dicts = [{k: v for k, v in zip(header, row)} for row in rows]

    return row_dicts