infer_type

bandicoot.helper.group.infer_type(data)

Infer the type of objects returned by indicators.

infer_type returns:
  • 'scalar' for a number or None,
  • 'summarystats' for a SummaryStats object,
  • 'distribution_scalar' for a list of scalars,
  • 'distribution_summarystats' for a list of SummaryStats objects