class_docstr: FeatureImportances visualizer
class_docstr_tok: ["FeatureImportances","visualizer"]
docstr: Integration test of visualizer with numpy without target y passed in
  but no class labels
docstr_tok: ["Integration","test","of","visualizer","with","numpy","without","target","y","passed","in","but","no","class","labels"]
code: def test_missingvaluesbar_numpy_with_y_target(self):
      """
      Integration test of visualizer with numpy without target y passed in
      but no class labels
      """
      X, y = make_classification(
          n_samples=400,
          n_features=20,
          n_informative=8,
          n_redundant=8,
          n_classes=2,
          n_clusters_per_class=4,
          random_state=856,
      )
  
      # add nan values to a range of values in the matrix
      X[X > 1.5] = np.nan
  
      features = [str(n) for n in range(20)]
      viz = MissingValuesBar(features=features)
      viz.fit(X, y)
      viz.finalize()
  
      self.assert_images_similar(viz, tol=self.tol)
  
file_path: yellowbrick/tests/test_contrib/test_missing/test_bar.py
imports: import os
  import pytest
  import numpy
  from tests.base import VisualTestCase
  from sklearn.datasets import make_classification
  from yellowbrick.contrib.missing.bar import *
label_desc: Use image node_id 5 for calling the TestMissingBarVisualizer obj's underlying member method code with example usage: obj.test_missingvaluesbar_numpy_with_y_target() without return types