docstr: Converts a lambda function into a format
  where parameter labels are changed to the column
  indexes in parameter space.
docstr_tok: ["Converts","a","lambda","function","into","a","format","where","parameter","labels","are","changed","to","the","column","indexes","in","parameter","space","."]
code: def _convert_lambda(self, fn):
      """Converts a lambda function into a format
      where parameter labels are changed to the column
      indexes in parameter space."""
  
      # get the source code for the lambda function
      fn_string = inspect.getsource(fn)
      fn_string = fn_string.replace('"', "'")
  
      # look for column/label names
      for i, name in enumerate(self.param_keys):
          index = ":," + str(i)
          fn_string = fn_string.replace(name, index)
  
      # cleanup the string
      fn_string = fn_string.split("lambda")[1]
      fn_string = fn_string.replace("[':", "[:")
      fn_string = fn_string.replace("']", "]")
      fn_string = "lambda " + fn_string
  
      # pass it back as a function
      return eval(fn_string)
  
file_path: talos/talos/parameters/ParamSpace.py
imports: import inspect
  import numpy
  import itertools
  from datetime import datetime
label_desc: Use image node_id 9 for calling the ParamSpace obj's underlying member method code with example usage: obj._convert_lambda(fn) and returns: eval