pm4py.objects.ocel.util.extended_table module#
- class pm4py.objects.ocel.util.extended_table.Parameters(*values)[source]#
Bases:
Enum- OBJECT_TYPE_PREFIX = 'param:object:type:prefix:extended'#
- EVENT_ID = 'param:event:id'#
- EVENT_ACTIVITY = 'param:event:activity'#
- EVENT_TIMESTAMP = 'param:event:timestamp'#
- OBJECT_ID = 'param:object:id'#
- OBJECT_TYPE = 'param:object:type'#
- INTERNAL_INDEX = 'param:internal:index'#
- pm4py.objects.ocel.util.extended_table.safe_parse_list(value)[source]#
Safely parse a string into a list using ast.literal_eval.
- Args:
value: The value to parse
- Returns:
A list if the parsing was successful, otherwise an empty list
- pm4py.objects.ocel.util.extended_table.get_ocel_from_extended_table(df: DataFrame, objects_df: DataFrame | None = None, parameters: Dict[Any, Any] | None = None, chunk_size: int = 50000) OCEL[source]#
Get an OCEL object from an extended table format.
- Args:
df: The DataFrame in extended table format objects_df: Optional DataFrame of objects parameters: Optional parameters dictionary chunk_size: Size of chunks to process
- Returns:
An OCEL object