code: def _sanitize_column_names(data):
      
      new_names = {}
      for name in data.columns:
          new_names[name] = _ILLEGAL_CHARACTER_PAT.sub("_", name)
      return new_names
docs: Replace illegal characters with underscore