def reorder_cols(df, dep_var, cont_inputs):
    """Reorders columns in DataFrame so that categorical inputs are first"""
    cols = df.columns.tolist()
    cat_inputs = [x for x in df.drop(columns=dep_var).columns if x not in cont_inputs]
    cols_start = [dep_var] + cat_inputs
    cols = cols_start + [x for x in cols if x not in cols_start]
    return df[cols]