python/pymethylprocess/MethylationDataTypes.py
def overwrite_pheno_data(self, preprocess_sample_df):
        """Feed in another phenotype dataframe that will overwrite overlapping keys of existing phenotype array.

        Parameters
        ----------
        preprocess_sample_df
            New phenotype dataframe.
        """
        preprocess_sample_df=preprocess_sample_df.loc[self.pheno.index,:]
        for col in list(preprocess_sample_df):
            if col in list(self.pheno):
                self.pheno.loc[:,col]=preprocess_sample_df[col]
            else:
                self.pheno[col]=preprocess_sample_df[col]
Feed in another phenotype dataframe that will overwrite overlapping keys of existing phenotype array.

        Parameters
        ----------
        preprocess_sample_df
            New phenotype dataframe.
        
Feed in another phenotype dataframe that will overwrite overlapping keys of existing phenotype array.
Parameters

preprocess_sample_df
New phenotype dataframe.
Feed in another phenotype dataframe that will overwrite overlapping keys of existing phenotype array . Parameters preprocess_sample_df New phenotype dataframe .
def overwrite_pheno_data(self, preprocess_sample_df):
        preprocess_sample_df=preprocess_sample_df.loc[self.pheno.index,:]
        for col in list(preprocess_sample_df):
            if col in list(self.pheno):
                self.pheno.loc[:,col]=preprocess_sample_df[col]
            else:
                self.pheno[col]=preprocess_sample_df[col]
def overwrite_pheno_data ( self , preprocess_sample_df ) : preprocess_sample_df = preprocess_sample_df . loc [ self . pheno . index , : ] for col in list ( preprocess_sample_df ) : if col in list ( self . pheno ) : self . pheno . loc [ : , col ] = preprocess_sample_df [ col ] else : self . pheno [ col ] = preprocess_sample_df [ col ]
Feed in another phenotype dataframe that will overwrite overlapping keys of existing phenotype array.
Feed in another phenotype dataframe that will overwrite overlapping keys of existing phenotype array .
"""Feed in another phenotype dataframe that will overwrite overlapping keys of existing phenotype array.

        Parameters
        ----------
        preprocess_sample_df
            New phenotype dataframe.
        """
self
preprocess_sample_df