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 print_list(self, li, show_only_changes):
      if show_only_changes is False:
          for ix in range(len(li)):
              print(li[ix])
      else:
          newli = copy.deepcopy(li)
          org = self.test_instance_df.values.tolist()[0]
          for ix in range(len(newli)):
              for jx in range(len(newli[ix])):
                  if math.isclose(
                      newli[ix][jx],
                      org[jx],
                      rel_tol=abs(org[jx] / 10000),
                  ):
                      newli[ix][jx] = "-"
              print(newli[ix])
  
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 8 for calling the CounterfactualExamples obj's underlying member method code with example usage: obj.print_list(li, show_only_changes) without return types