, join=&#39;inner&#39;).sort_index()
    return remergeDF

#Define well intervals by depth
def depth_define(df, top_col=&#39;TOP&#39;, thresh=550.0, verbose=False, log=False):
    &#34;&#34;&#34;Function to define all intervals lower than thresh as bedrock

    Parameters
    ----------
    df : pandas.DataFrame
        Dataframe to classify
    top_col : str, default = &#39;TOP&#39;
        Name of column that contains the depth information, likely of the top of the well interval, by default &#39;TOP&#39;
