def update_exceptions(estimates_output, code, new_comment):
    """Updates exception_count and exception comment columns of param_user for
       appropriate codes
       Inputs:
           estimates_output - a df of parameters and estimates
           code - a str - id_code in the form "dddddd000d[A-Z]"
           new_comment - a str - explaining the nature of the exception
       Returns:
           param_user_all - a df of parameters and estimates (with updated 
               exception details)
    """
    estimates_output.loc[code, 'exception_count'] += 1
    estimates_output.loc[code, 'exception_comment'] += (new_comment+' ')
    return(estimates_output)