def required_columns(row_to_add, wanted_keys):
    """
    :param row_to_add: Contains the rows from the input file.
    :param wanted_keys: List of required column header names to be displayed at the end.
    :return: Dict of keys,values formatted data.
    """

    required_keys = dict((k, row_to_add[k]) for k in wanted_keys if k in row_to_add)
            
    return required_keys