class_docstr: Test ClassPredictionError visualizer
class_docstr_tok: ["Test","ClassPredictionError","visualizer"]
docstr: Assert no errors during class prediction error integration with Pandas
docstr_tok: ["Assert","no","errors","during","class","prediction","error","integration","with","Pandas"]
code: def test_pandas_integration(self):
      """
      Assert no errors during class prediction error integration with Pandas
      """
      X, y = load_occupancy(return_dataset=True).to_pandas()
      classes = ["unoccupied", "occupied"]
  
      model = SVC(random_state=42)
      model.fit(X, y)
      visualizer = ClassPredictionError(model, classes=classes)
      visualizer.score(X, y)
      visualizer.finalize()
  
      # AppVeyor and Linux conda fail due to non-text-based differences
      # AppVeyor fails with RMS 13.161 - 13.289 (python - miniconda)
      self.assert_images_similar(visualizer, tol=12.5, windows_tol=13.3)
  
imports: import pytest
  import matplotlib.pyplot
  from yellowbrick.exceptions import ModelError
  from yellowbrick.datasets import load_occupancy
  from yellowbrick.classifier.class_prediction_error import *
  from sklearn.svm import LinearSVC, SVC
  from sklearn.ensemble import RandomForestClassifier
  from sklearn.datasets import make_multilabel_classification
  from sklearn.model_selection import train_test_split
  from sklearn.pipeline import Pipeline
  from sklearn.preprocessing import MinMaxScaler
  from unittest.mock import patch
  from tests.base import VisualTestCase
label_desc: Use image node_id 2 for calling the TestClassPredictionError obj's underlying member method code with example usage: obj.test_pandas_integration() without return types