code: def remove_incomplete_samples(x, y):
      x = [v if v is not None else np.nan for v in x]
      y = [v if v is not None else np.nan for v in y]
      arr = np.array([x, y]).transpose()
      arr = arr[~np.isnan(arr).any(axis=1)].transpose()
      if isinstance(x, list):
          return arr[0].tolist(), arr[1].tolist()
      else:
          return arr[0], arr[1]
  
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 2 for calling a global function with example usage: remove_incomplete_samples(x, y) and returns: arr,  arr, arr,  arr