class_docstr: Imputed Data
  
  This class should not be instantiated directly.
  Instead, it is returned when ImputationKernel.impute_new_data() is called.
  For parameter arguments, see ImputationKernel documentation.
class_docstr_tok: ["Imputed","Data","This","class","should","not","be","instantiated","directly",".","Instead",",","it","is","returned","when","ImputationKernel.impute_new_data","(",")","is","called",".","For","parameter","arguments",",","see","ImputationKernel","documentation","."]
docstr: Gets the variable name from an index.
  Returns a list of names if a list of indexes was passed.
  Otherwise, returns the variable name directly from self.column_names.
docstr_tok: ["Gets","the","variable","name","from","an","index",".","Returns","a","list","of","names","if","a","list","of","indexes","was","passed",".","Otherwise",",","returns","the","variable","name","directly","from","self.column_names","."]
code: def _get_var_name_from_scalar(self, ind: Union[str, int]) -> str:
      """
      Gets the variable name from an index.
      Returns a list of names if a list of indexes was passed.
      Otherwise, returns the variable name directly from self.column_names.
      """
      if isinstance(ind, str):
          return ind
      else:
          return self.column_names[ind]
  
imports: import numpy
  from .compat import pd_DataFrame
  from .utils import _t_dat, _t_var_list, _t_var_dict, _ensure_iterable, _dict_set_diff, _assign_col_values_without_copy, _slice, _subset_data
  from itertools import combinations
  from typing import Dict, List, Union, Any, Optional
  from warnings import warn
label_desc: Use image node_id 8 for calling the ImputedData obj's underlying member method code with example usage: obj._get_var_name_from_scalar(ind) and returns: ind, self