@classmethod
def from_pandas_dataframe(cls, dataframe, trained_classifier, **params):
    """
        Constructing the handler from a pandas dataframe.
        :param dataframe: the dataframe form which the handler is constructed.
        The 'target' column  should be included in the dataframe.
        :param trained_classifier: sklearn classifier (trained / fitted).
        :param params: other params.
        :return: returns the classifier plot handler object.
        """
    assert 'target' in dataframe.columns.values, 'target values not in dataframe'
    dataset = dict()
    dataset['data'] = dataframe.drop('target', axis=1).values
    dataset['target'] = dataframe['target'].values
    dataset['feature_names'] = dataframe.drop('target', axis=1).columns.values
    return cls(dataset, trained_classifier, **params)
