Utils

Contains functions for checking for installations/dependencies.

dataprofiler.labelers.utils.warn_missing_module(labeler_function: str, module_name: str) None

Return a warning if a given graph module doesn’t exist.

Parameters
  • labeler_function (str) – Name of the graphing function

  • module_name (str) – module name that was missing

dataprofiler.labelers.utils.require_module(names: List[str]) Callable

Check if a set of modules exists in sys.modules prior to running function.

If they do not, give a user a warning and do not run the function.

Parameters

names (list[str]) – list of module names to check for in sys.modules