pm4py.vis.view_performance_dfg#

pm4py.vis.view_performance_dfg(dfg: dict, start_activities: dict, end_activities: dict, format: str = 'png', aggregation_measure='mean', bgcolor: str = 'white')[source]#

Views a performance DFG

Parameters:
  • dfg (dict) – DFG object

  • start_activities (dict) – Start activities

  • end_activities (dict) – End activities

  • format (str) – Format of the output picture (default: png)

  • aggregation_measure (str) – Aggregation measure (default: mean): mean, median, min, max, sum, stdev

  • bgcolor (str) – Background color of the visualization (default: white)

import pm4py

performance_dfg, start_activities, end_activities = pm4py.discover_performance_dfg(dataframe, case_id_key='case:concept:name', activity_key='concept:name', timestamp_key='time:timestamp')
pm4py.view_performance_dfg(performance_dfg, start_activities, end_activities, format='svg')