arthurai.core.inferences.add_inference_metadata_to_dataframe#
- arthurai.core.inferences.add_inference_metadata_to_dataframe(df, model_attributes, ignore_join_errors=False)#
Adds timestamp and/or partner_inference_id fields to the DataFrame.
- Parameters
df (
DataFrame
) – DataFrame to add metadata tomodel_attributes (
Collection
[ArthurAttribute
]) – attributes of the modelignore_join_errors (
bool
) – if True, allow inference data withoutpartner_inference_id
or ground truth data
- Return type
DataFrame
- Returns
the input DataFrame if no updates are needed, otherwise a shallow copy with the new columns
- Raises
UserValueError – if inference data is supplied without
partner_inference_id
or ground truth data, andignore_join_errors
is False.