Utils

Contains functions for checking for installations/dependencies.

dataprofiler.reports.utils.warn_missing_module(graph_func, module_name)

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

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

  • module_name (str) – module name that was missing

dataprofiler.reports.utils.require_module(names)

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