class_docstr: _Col class. It refers to a column of a dataframe.
class_docstr_tok: ["_Col","class",".","It","refers","to","a","column","of","a","dataframe","."]
docstr: Returns a feature/namespace name that is compatible with VW (no ':' nor ' ').
  
  Args:
      name: The name that will be made valid.
  
  Returns:
      A valid VW feature name.
docstr_tok: ["Returns","a","feature\/namespace","name","that","is","compatible","with","VW","(","no","'",":","'","nor","'","'",")",".","Args",":","name",":","The","name","that","will","be","made","valid",".","Returns",":","A","valid","VW","feature","name","."]
code: def make_valid_name(name: str) -> str:
      """Returns a feature/namespace name that is compatible with VW (no ':' nor ' ').
  
      Args:
          name: The name that will be made valid.
  
      Returns:
          A valid VW feature name.
      """
      name = str(name)
      valid_name = (
          name.replace(":", " ")
          .replace("|", " ")
          .strip()
          .replace(" ", "_")
      )
  
      if valid_name != name:
          warnings.warn(
              "Name '{name}' was not a valid feature/namespace name. It has been renamed '{valid_name}'".format(
                  name=name,
                  valid_name=valid_name,
              )
          )
  
      return valid_name
  
imports: import warnings
  import numpy
  import pandas
  from typing import Any, Hashable, List, Optional, Tuple, Type, Union
label_desc: Use image node_id 2 for calling the _Col obj's underlying member method code with example usage: obj.make_valid_name(name) and returns: valid_name