pm4py.objects.ocel.util.extended_table module#

PM4Py – A Process Mining Library for Python Copyright (C) 2026 Process Intelligence Solutions GmbH

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see this software project’s root or visit <https://www.gnu.org/licenses/>.

Website: https://processintelligence.solutions Contact: info@processintelligence.solutions

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