9;].where(~df[description_col].str.contains(s, case=False, regex=False, na=False), 5, inplace=True)
        df[&#39;LITHOLOGY&#39;].where(~df[description_col].str.contains(s, case=False, regex=False, na=False),terms_df.loc[i,&#39;LITHOLOGY&#39;],inplace=True)
    df[&#39;BEDROCK_FLAG&#39;].loc[df[&#34;LITHOLOGY&#34;] == &#39;BEDROCK&#39;]
    
    if verbose:
        numRecsClass = int(df[df[&#39;CLASS_FLAG&#39;]==5][&#39;CLASS_FLAG&#39;].sum())
        percRecsClass= round((df[df[&#39;CLASS_FLAG&#39;]==5][