def load_df_true_segment(self,df):
        if type(df) != pd.core.frame.DataFrame:
            raise Exception('Object passed, %s, is not a Dataframe. Object passed is of type %s' % (df, type(df)))
        elif self.id not in df.columns:
            raise Exception('Dataframe passed, %s, does not contain unique ID field: %s' % (df, self.id))
        elif not all(x in df.columns for x in self.targets):
            raise Exception('Dataframe passed, %s, does not contain all target variables: %s' % (df, self.targets))
        else:
            self.df_true_segment = df.copy()
            utils.info('True value for target variables successfully loaded into self.df_true_segment')
For segmented data.
dataset/ETHPy150Open theusual/kaggle-seeclickfix-ensemble/Bryan/ensembles.py/EnsembleAvg.load_df_true_segment