def _fill_col1_val_where_col2_notna(col1, col2, val):
    """Set col1 to val  where col2 is not NA if col1 is not set."""
    fill_ser = col1.copy()
    fill_ser[col2.notna()] = val
    return col1.fillna(fill_ser)