def conform_to_original_data(cdata, cols_input, data):
    """Reset column names and add dropped columns back"""
    cdata.output = cdata.output.rename(columns=cols_input)
    cdata.output = cdata.output.merge(data, how='outer', on=list(cols_input
        .values()))
    return cdata
