def extract_name(row):
    """ Helper function for comparing datasets, this extracts the name from the db name

        Args:
            row: row in the dataframe representing the db model

        Returns:
            name extracted from agency_name or np.nan
    """
    return row['agency_name'][:row['agency_name'].rindex('(') - 1]