arthurai.core.inferences.parse_stage_attributes#

arthurai.core.inferences.parse_stage_attributes(data, attributes, stage)#

Parses data for a single stage into the standard List of Dicts format.

If the stage contains only a single attribute, data can be a single list-like column.

See also

Similar to dataframe_like_to_list_of_dicts, but an expected column (attribute)-aware and supports single columns

Parameters
  • data (Union[List[Dict[str, Any]], Dict[str, List[Any]], DataFrame, Iterable[Any]]) –

  • attributes (List[ArthurAttribute]) –

  • stage (Stage) –

Returns

parsed data in List of Dicts formt