def save(self, path):
        """Save scorecard to pickle file.

        Parameters
        ----------
        path : str
            Pickle file path.
        """
        if not isinstance(path, str):
            raise TypeError("path must be a string.")

        with open(path, "wb") as f:
            pickle.dump(self, f)
Save scorecard to pickle file.

        Parameters
        ----------
        path : str
            Pickle file path.
        
optbinning/scorecard/scorecard.py