Difference between revisions of "Pm4py: pd-bpmn.py"

From OnnoWiki
Jump to navigation Jump to search
(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=',')...")
 
 
Line 5: Line 5:
 
  if __name__ == "__main__":
 
  if __name__ == "__main__":
 
     dataframe = pd.read_csv('/home/onno/ORANGE/PROCESS-MINING/Insurance_claims_event_log.csv', sep=',')
 
     dataframe = pd.read_csv('/home/onno/ORANGE/PROCESS-MINING/Insurance_claims_event_log.csv', sep=',')
     dataframe = pm4py.format_dataframe(dataframe, case_id='case_id',  
+
     dataframe = pm4py.format_dataframe(dataframe, case_id='case_id', activity_key='activity_name', timestamp_key='timestamp')
activity_key='activity_name', timestamp_key='timestamp')
 
 
     event_log = pm4py.convert_to_event_log(dataframe)
 
     event_log = pm4py.convert_to_event_log(dataframe)
 
   
 
   

Latest revision as of 11:03, 5 November 2023

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)

    process_tree = pm4py.discover_bpmn_inductive(event_log)
    bpmn_model = pm4py.convert_to_bpmn(process_tree)
    pm4py.view_bpmn(bpmn_model)


Pranala Menarik