Report Helpers

Contains helper functions for generating report.

dataprofiler.profilers.helpers.report_helpers.calculate_quantiles(num_quantile_groups, quantiles)

Calculate and return quantiles.

dataprofiler.profilers.helpers.report_helpers.flat_dict(od, separator='_', key='')

Flatten nested dictionary.

Each level is collapsed and joined with the specified seperator.

Parameters
  • od (dict) – dictionary or dictionary-like object

  • seperator (str) – character(s) joining successive levels

  • key (str) – concatenated keys

Returns

unnested dictionary

Return type

dict