pm4py.algo.transformation.ocel.olap.drill_down.variants.classic 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.algo.transformation.ocel.olap.drill_down.variants.classic.Parameters(*values)[source]#

Bases: Enum

OBJECT_TYPE = 'object_type'#
OBJECT_ATTRIBUTE = 'object_attribute'#
TUPLE_FORMAT = 'tuple_format'#
pm4py.algo.transformation.ocel.olap.drill_down.variants.classic.apply(ocel: OCEL, parameters: Dict[Any, Any] | None = None) → OCEL[source]#

Drill-down: splits a target object type into sub-types based on the values of a given object attribute.

For every object whose type equals object_type and whose object_attribute value is defined, the type is rewritten to tuple_format(object_type, value). Objects whose attribute value is undefined (NaN / empty) keep their original type.

Parameters:
  • ocel – Object-centric event log

  • parameters –

    • Parameters.OBJECT_TYPE: name of the object type to split (required)

    • Parameters.OBJECT_ATTRIBUTE: name of the object attribute column to split by (required; must be a column of ocel.objects)

    • Parameters.TUPLE_FORMAT: optional callable (parent: str, value: str) -> str used to build the new type name; defaults to "(parent, value)".

Notes

This implementation reads attribute values from ocel.objects only; time-varying attribute values in ocel.object_changes are not used to drive the split.

Returns a new OCEL; the input log is left untouched.