pm4py.vis.save_vis_case_duration_graph(log: Union[EventLog, DataFrame], file_path: str, activity_key='concept:name', timestamp_key='time:timestamp', case_id_key='case:concept:name', **kwargs)[source]#

Saves the case duration graph in the specified path

  • log – Log object

  • file_path (str) – Destination path

  • activity_key (str) – attribute to be used as activity

  • case_id_key (str) – attribute to be used as case identifier

  • timestamp_key (str) – attribute to be used as timestamp

import pm4py

pm4py.save_vis_case_duration_graph(dataframe, 'duration.png', activity_key='concept:name', case_id_key='case:concept:name', timestamp_key='time:timestamp')