code: def test_pandas_confusion_normalized_issue1(self):
      # should insure issue 1 is fixed
      # see http://stackoverflow.com/questions/19233771/sklearn-plot-confusion-matrix-with-labels/31720054#31720054
  
      y_true = [
          "business",
          "business",
          "business",
          "business",
          "business",
          "business",
          "business",
          "business",
          "business",
          "business",
          "business",
          "business",
          "business",
          "business",
          "business",
          "business",
          "business",
          "business",
          "business",
          "business",
      ]
  
      y_pred = [
          "health",
          "business",
          "business",
          "business",
          "business",
          "business",
          "health",
          "health",
          "business",
          "business",
          "business",
          "business",
          "business",
          "business",
          "business",
          "business",
          "health",
          "health",
          "business",
          "health",
      ]
  
      cm = ConfusionMatrix(y_true, y_pred)
      assert isinstance(cm, pdml.confusion_matrix.BinaryConfusionMatrix)
  
      df = cm.to_dataframe()
      df_norm = cm.to_dataframe(normalized=True)
      assert df_norm.sum(axis=1, skipna=False).fillna(1).sum() == len(
          df
      )
  
imports: import pytest
  import matplotlib
  import numpy
  import pandas
  import pandas_ml.util.testing
  import pandas_ml
  from pandas_ml import ConfusionMatrix
  from collections import OrderedDict
label_desc: Use image node_id 14 for calling the TestConfusionMatrix obj's underlying member method code with example usage: obj.test_pandas_confusion_normalized_issue1() without return types