def merge(self, bcatsketch):
        """Merge current instance with another BCatSketch instance.

        Parameters
        ----------
        bcatsketch : object
            BCatSketch instance.
        """

        # Merge categories
        for k, v in bcatsketch._d_categories.items():
            if k in self._d_categories:
                self._d_categories[k][0] += v[0]
                self._d_categories[k][1] += v[1]
            else:
                self._d_categories[k] = v

        # Merge missing and special counts
        self._count_missing_e += bcatsketch._count_missing_e
        self._count_missing_ne += bcatsketch._count_missing_ne
        self._count_special_e += bcatsketch._count_special_e
        self._count_special_ne += bcatsketch._count_special_ne
Merge current instance with another BCatSketch instance.

        Parameters
        ----------
        bcatsketch : object
            BCatSketch instance.
        
optbinning/binning/distributed/bsketch.py