(col_name, encrypted_bin_sum)
return col_name, {"event_counts": event_counts, "non_event_counts": non_event_counts}
Parameters
        ----------
        encrypted_bin_sum :  list.
            It is like:
                {'x1': [[event_count, non_event_count], [event_count, non_event_count] ... ],
                 'x2': [[event_count, non_event_count], [event_count, non_event_count] ... ],
                 ...
                }

        returns
        -------
        {"keys": ['x1', 'x2' ...],
         "event_counts": [...],
         "non_event_counts": [...],
         "bin_num": [...]
         }
Parameters
        ----------
        encrypted_bin_sum :  list.
            It is like:
                {'x1': [[event_count, non_event_count], [event_count, non_event_count] ... ],
                 'x2': [[event_count, non_event_count], [event_count, non_event_count] ... ],
                 ...
                }
Parameters ---------- encrypted_bin_sum : list . It is like : { x1 : [[ event_count non_event_count ] [ event_count non_event_count ] ... ] x2 : [[ event_count non_event_count ] [ event_count non_event_count ] ... ] ... }
def convert_compress_format(col_name, encrypted_bin_sum):
        """
        Parameters
        ----------
        encrypted_bin_sum :  list.
            It is like:
                {'x1': [[event_count, non_event_count], [event_count, non_event_count] ... ],
                 'x2': [[event_count, non_event_count], [event_count, non_event_count] ... ],
                 ...
                }

        returns
        -------
        {"keys": ['x1', 'x2' ...],
         "event_counts": [...],
         "non_event_counts": [...],
         "bin_num": [...]
         }
        """
        event_counts = [x[0] for x in encrypted_bin_sum]
        non_event_counts = [x[1] for x in encrypted_bin_sum]
        return col_name, {"event_counts": event_counts, "non_event_counts": non_event_counts}
def convert_compress_format ( col_name , encrypted_bin_sum ) : event_counts = [ x [ 0 ] for x in encrypted_bin_sum ] non_event_counts = [ x [ 1 ] for x in encrypted_bin_sum ] return col_name , { "event_counts" : event_counts , "non_event_counts" : non_event_counts }