class_docstr: A class to store and visualize the resulting counterfactual explanations.
class_docstr_tok: ["A","class","to","store","and","visualize","the","resulting","counterfactual","explanations","."]
code: def visualize_as_dataframe(
      self, display_sparse_df=True, show_only_changes=False
  ):
      from IPython.display import display
  
      # original instance
      print(
          "Query instance (original outcome : {0})".format(
              self.test_pred
          )
      )
      display(self.test_instance_df)  # works only in Jupyter notebook
      self._visualize_internal(
          display_sparse_df=display_sparse_df,
          show_only_changes=show_only_changes,
          is_notebook_console=True,
      )
  
imports: import copy
  import json
  import math
  import numpy
  import pandas
  from dice_ml.constants import ModelTypes, _SchemaVersions
  from dice_ml.utils.serialize import DummyDataInterface
label_desc: Use image node_id 5 for calling the CounterfactualExamples obj's underlying member method code with example usage: obj.visualize_as_dataframe(display_sparse_df, show_only_changes) without return types