(self, guest_columns, host_columns)
return combined_all_cols
This is used when there is a need for aligment within the
        federated learning. The function would align the column headers from
        guest and host and send the new aligned headers back.

        Returns:
            Combine all the column headers from guest and host 
            if there is alignment is used
This is used when there is a need for aligment within the
        federated learning. The function would align the column headers from
        guest and host and send the new aligned headers back.
This is used when there is a need for aligment within the federated learning . The function would align the column headers from guest and host and send the new aligned headers back .
def combine_all_column_headers(self, guest_columns, host_columns):
        """ This is used when there is a need for aligment within the
        federated learning. The function would align the column headers from
        guest and host and send the new aligned headers back.

        Returns:
            Combine all the column headers from guest and host 
            if there is alignment is used
        """
        all_cols_dict = defaultdict(list)

        # Obtain all the guest headers
        for guest_cols in guest_columns:
            for k, v in guest_cols.items():
                all_cols_dict[k] = list(set(all_cols_dict[k] + v))

        # Obtain all the host headers
        for host_cols in host_columns:
            for k, v in host_cols.items():
                all_cols_dict[k] = list(set(all_cols_dict[k] + v))

        # Align all of them together
        combined_all_cols = {}
        for el in all_cols_dict.keys():
            combined_all_cols[el] = all_cols_dict[el]

        LOGGER.debug("{} combined cols: {}".format(self.role, combined_all_cols))

        return combined_all_cols
def combine_all_column_headers ( self , guest_columns , host_columns ) : all_cols_dict = defaultdict ( list ) # Obtain all the guest headers for guest_cols in guest_columns : for k , v in guest_cols . items ( ) : all_cols_dict [ k ] = list ( set ( all_cols_dict [ k ] + v ) ) # Obtain all the host headers for host_cols in host_columns : for k , v in host_cols . items ( ) : all_cols_dict [ k ] = list ( set ( all_cols_dict [ k ] + v ) ) # Align all of them together combined_all_cols = { } for el in all_cols_dict . keys ( ) : combined_all_cols [ el ] = all_cols_dict [ el ] LOGGER . debug ( "{} combined cols: {}" . format ( self . role , combined_all_cols ) ) return combined_all_cols