def impute_loan_term(data):
    """
    Imputes loan term value with the mean loan term.
    """
    data['Loan_Amount_Term'] = data['Loan_Amount_Term'].fillna(data['Loan_Amount_Term'].mean())
    data['Loan_Amount_Term'] = data['Loan_Amount_Term']/12
    return data