def format_interconnector_loss_demand_coefficient(LOSSFACTORMODEL):
    """Re-formats the AEMO MSS table LOSSFACTORMODEL to be compatible with the Spot market class.

    Examples
    --------

    >>> LOSSFACTORMODEL = pd.DataFrame({
    ... 'INTERCONNECTORID': ['X', 'X', 'X', 'Y', 'Y'],
    ... 'REGIONID': ['A', 'B', 'C', 'C', 'D'],
    ... 'DEMANDCOEFFICIENT': [0.001, 0.003, 0.005, 0.0001, 0.002]})

    >>> demand_coefficients = format_interconnector_loss_demand_coefficient(LOSSFACTORMODEL)

    >>> print(demand_coefficients)
      interconnector region  demand_coefficient
    0              X      A              0.0010
    1              X      B              0.0030
    2              X      C              0.0050
    3              Y      C              0.0001
    4              Y      D              0.0020


    Parameters
    ----------
    LOSSFACTORMODEL : pd.DataFrame

        =================  ======================================================================================
        Columns:           Description:
        INTERCONNECTORID   unique identifier of a interconnector (as `str`)
        REGIONID           unique identifier of a market region (as `str`)
        DEMANDCOEFFICIENT  the coefficient of regional demand variable in the loss factor equation (as `np.float64`)
        =================  ======================================================================================

    Returns
    ----------
    demand_coefficients : pd.DataFrame

        ==================  =========================================================================================
        Columns:            Description:
        interconnector      unique identifier of a interconnector (as `str`)
        region              the market region whose demand the coefficient applies too, required (as `str`)
        demand_coefficient  the coefficient of regional demand variable in the loss factor equation (as `np.float64`)
        ==================  =========================================================================================
    """
    demand_coefficients = LOSSFACTORMODEL.loc[:, ['INTERCONNECTORID', 'REGIONID', 'DEMANDCOEFFICIENT']]
    demand_coefficients.columns = ['interconnector', 'region', 'demand_coefficient']
    return demand_coefficients