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 pathactivity_key (
str) – Attribute to be used as activitycase_id_key (
str) – Attribute to be used as case identifiertimestamp_key (
str) – Attribute to be used as timestampgraph_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')