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', **kwargs)[source]#
Saves the case duration graph in 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 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')