class_docstr: Test the ParallelCoordinates visualizer
class_docstr_tok: ["Test","the","ParallelCoordinates","visualizer"]
docstr: Test on a real dataset with pandas DataFrame and Series sampled for speed
docstr_tok: ["Test","on","a","real","dataset","with","pandas","DataFrame","and","Series","sampled","for","speed"]
code: def test_pandas_integration_sampled(self):
      """
      Test on a real dataset with pandas DataFrame and Series sampled for speed
      """
      data = load_occupancy(return_dataset=True)
      X, y = data.to_pandas()
      classes = [
          k
          for k, _ in sorted(
              data.meta["labels"].items(), key=lambda i: i[1]
          )
      ]
  
      assert isinstance(X, pd.DataFrame)
      assert isinstance(y, pd.Series)
  
      oz = ParallelCoordinates(
          sample=0.05, shuffle=True, random_state=4291, classes=classes
      )
      oz.fit_transform(X, y)
      oz.finalize()
  
      self.assert_images_similar(oz, tol=0.1)
  
imports: import pytest
  import numpy
  from yellowbrick.datasets import load_occupancy
  from yellowbrick.features.pcoords import *
  from tests.base import VisualTestCase
  from ..fixtures import Dataset
  from sklearn.datasets import make_classification
label_desc: Use image node_id 12 for calling the TestParallelCoordinates obj's underlying member method code with example usage: obj.test_pandas_integration_sampled() without return types