def format_pred(pred_row, lbls, nonlbls, cdf_cols):
    """
    This separates off the formatting of the pred_ll dataframe from the 
    get_pred function for cleanliness. 

    Parameters
    ----------
    pred_row : single-row dataframe including nuclide measurements, the 
               prediction (i.e., the predicted labels), and all saved log-
               likelihoods
    lbls : list of labels that are predicted
    nonlbls : list of reactor parameters that aren't being predicted
    cdf_cols : list of new LogLL columns added to prediction for CDF plot

    Returns
    -------
    pred_row : single-row dataframe including the prediction (i.e., predicted 
               labels), LLmax, LLUnc, and a list of LLs and their Uncs to 
               populate a CDF
    
    """
    lbls = lbls + nonlbls
    pred_lbls = ["pred_" + s for s in lbls] 
    pred_row.rename(columns=dict(zip(lbls, pred_lbls)), inplace=True)
    pred_lbls.extend(cdf_cols)
    pred_row = pred_row.loc[:, pred_lbls]

    return pred_row