classified ({}% of unclassified  data).&#39;.format(recsRemainig, 1-percRecsClass))
    return df

#Classify downhole data by any substring
def wildcard_define(df, terms_df, description_col=&#39;FORMATION&#39;, terms_col=&#39;DESCRIPTION&#39;, verbose=False, log=False):
    &#34;&#34;&#34;Function to classify descriptions according to any substring. 

    Parameters
    ----------
    df : pandas.DataFrame
        Dataframe containing all the well descriptions
    terms_df : pandas.DataFrame
        Datafra