pm4py.vis.save_vis_case_duration_graph#

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

Saves the case duration graph to the specified path.

Parameters:
  • 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

  • graph_title – Sets the title of the visualization (if provided)

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')