def apply_financial_params(dataframe, financing_terms, inflation_rate):
    """
    apply_financial_params

    Add the year's financial parameters including
    depreciation schedule (array  for years 0,1,2,3,4,5), Solar ITC fraction, Solar ITC min size kw, Solar ITC max size kw,
    years of loan term, loan rate, down payment percent, real discount percent, tax rate and economic lifetime

    Parameters
    ----------
    dataframe : pandas.DataFrame
        agent attributes for the given year
    inflation_rate : float
        inflation rate percent
    financing_terms : pandas.DataFrame
        Attributes
        ----------
        financing_terms.deprec_sch
        financing_terms.itc_fraction
        financing_terms.min_size_kw
        financing_terms.max_size_kw
        financing_terms.loan_term
        financing_terms.loan_rate
        financing_terms.down_payment
        financing_terms.real_discount
        financing_terms.tax_rate
        financing_terms.economic_lifetime

    Returns
    -------
    pandas.DataFrame
        agent attributes with new attributes joined on
    """
    dataframe = dataframe.reset_index()
    dataframe = dataframe.merge(financing_terms, how='left', on=['year', 'sector_abbr'])
    dataframe['inflation'] = inflation_rate
    dataframe = dataframe.set_index('agent_id')

    return dataframe