code: def rm_nan(obj):
      return {
          k: (None if np.isnan(obj[k]) or np.isinf(obj[k]) else obj[k])
          for k in obj.keys()
      }
  
file_path: DALEX/python/dalex/dalex/arena/plots/_fairness_check_container.py
imports: import numpy
  import pandas
  from pandas.api.types import is_object_dtype
  from .._plot_container import PlotContainer
  from dalex.fairness._group_fairness import utils, checks
label_desc: Use image node_id 1 for calling a global function with example usage: rm_nan(obj) and returns: unknown