This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pm4py | |
from pm4py.objects.log.obj import EventLog,Event,Trace # under the hood objects within pm4py, subject to change | |
import pandas as pd | |
from tqdm import tqdm | |
from joblib import Parallel,delayed | |
from typing import Tuple | |
def thread_work(group:str,concept:Tuple[str,str,str],xtrace:int,exo_series:pd.DataFrame) -> Trace: | |
""" | |
Thread work to create a single trace, given some group id, key values from dataframe groupby, trace instance number and some dataframe of events to handle for this trace. |