class_docstr: UMAPVisualizer tests
class_docstr_tok: ["UMAPVisualizer","tests"]
docstr: Test UMAP when passed a pandas DataFrame and series
docstr_tok: ["Test","UMAP","when","passed","a","pandas","DataFrame","and","series"]
code: def test_visualizer_with_pandas(self):
      """
      Test UMAP when passed a pandas DataFrame and series
      """
      X, y = make_classification(
          n_samples=200,
          n_features=100,
          n_informative=20,
          n_redundant=10,
          n_classes=3,
          random_state=3020,
      )
  
      X = pandas.DataFrame(X)
      y = pandas.Series(y)
  
      umap = UMAPVisualizer(random_state=64)
      umap.fit(X, y)
  
      self.assert_images_similar(umap, tol=40)
  
imports: import sys
  import pytest
  import warnings
  from unittest import mock
  from tests.base import VisualTestCase
  from yellowbrick.text.umap_vis import *
  from yellowbrick.datasets import load_hobbies
  from yellowbrick.exceptions import YellowbrickValueError
  from sklearn.datasets import make_classification
  from sklearn.feature_extraction.text import TfidfVectorizer
label_desc: Use image node_id 12 for calling the TestUMAP obj's underlying member method code with example usage: obj.test_visualizer_with_pandas() without return types