pm4py.utils#

Functions

deserialize(ser_obj)

Deserializes a bytes string back into a PM4Py object.

format_dataframe(df[, case_id, ...])

Formats the dataframe appropriately for process mining purposes.

get_properties(log[, activity_key, ...])

Retrieves the properties from a log object.

parse_event_log_string(traces[, sep, ...])

Parses a collection of traces expressed as strings (e.g., ["A,B,C,D", "A,C,B,D", "A,D"]) into a log object.

parse_powl_model_string(powl_string)

Parses a POWL model from a string representation of the process model (with the same format as the __repr__ and __str__ methods of the POWL model).

parse_process_tree(tree_string)

Parses a process tree from a string.

project_on_event_attribute(log[, ...])

Projects the event log onto a specified event attribute.

rebase(log_obj[, case_id, activity_key, ...])

Re-bases the log object by changing the case ID, activity, and timestamp attributes.

sample_cases(log, num_cases[, case_id_key])

Randomly samples a given number of cases from the event log.

sample_events(log, num_events)

Randomly samples a given number of events from the event log.

serialize(*args)

Serializes a PM4Py object into a bytes string.

set_classifier(log, classifier[, ...])

Sets the specified classifier on an existing event log.