watex.utils.funcutils.get_config_fname_from_varname#

watex.utils.funcutils.get_config_fname_from_varname(data, config_fname=None, config='.yml')[source]#

use the variable name given to data as the config file name.

Parameters:
  • data – Given data to retrieve the variable name

  • config_fname – Configurate variable filename. If None , use the name of the given varibale data

  • config – Type of file for configuration. Can be json, yml or csv file. default is yml.

Returns:

str, the configuration data.