code: def replace_nan_with_value(x, y, value):
      x = [
          v if v == v and v is not None else value for v in x
      ]  # NaN != NaN
      y = [v if v == v and v is not None else value for v in y]
      return x, y
  
file_path: sweetviz/sweetviz/from_dython.py
imports: import numpy
  import pandas
  from collections import Counter
  import math
  import scipy.stats
label_desc: Use image node_id 3 for calling a global function with example usage: replace_nan_with_value(x, y, value) and returns: x,  y