melt_explanations#
- datarobotx.melt_explanations(df, id_vars=None)#
Melt Dataframe of explanations into long form columns.
- Parameters:
df (pd.DataFrame) – A dataframe with prediction explanations. Assumes explanations in wide form, with at least one of: [feature_name, actual_value, strength, qualitative_strength] for each prediction
id_vars (list, default=[]) – List of columns to keep in long form dataframe
- Return type: