Frequency and average time Calculator

Some of the attributes of an edge in the event log is a frequency and average ! We want to create a function that caculate the frequencies and the average time of the transitions between Activities.

The output should be a dataframe that has 4 columns: {Source, Target, Frequency, Average Time}

The source and target are activities.

PS: Maybe PM4py can help in this task

Edited by Jamal Rnjbal