import pickle


def load_pyfunc(path):
    """
    Load a persisted scikit-learn model as a ``python_function`` model.

    :param path: Local filesystem path to the model saved by :py:func:`mlflow.sklearn.save_model`.
    :rtype: Pyfunc format model with function
            ``model.predict(pandas DataFrame) -> pandas DataFrame``.
    """

    with open(path, "rb") as f:
        return pickle.load(f)