Pm4py: pd-dfg.py

From OnnoWiki
Revision as of 11:02, 5 November 2023 by Onnowpurbo (talk | contribs) (Created page with " import pandas as pd import pm4py if __name__ == "__main__": dataframe = pd.read_csv('/home/onno/ORANGE/PROCESS-MINING/Insurance_claims_event_log.csv', sep=',')...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
import pandas as pd
import pm4py

if __name__ == "__main__":
    dataframe = pd.read_csv('/home/onno/ORANGE/PROCESS-MINING/Insurance_claims_event_log.csv', sep=',')
    dataframe = pm4py.format_dataframe(dataframe, case_id='case_id', activity_key='activity_name', timestamp_key='timestamp')
    event_log = pm4py.convert_to_event_log(dataframe)

    dfg, start_activities, end_activities = pm4py.discover_dfg(event_log)
    pm4py.view_dfg(dfg, start_activities, end_activities)


Pranala Menarik