pm4py.statistics.attributes.log.select 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

pm4py.statistics.attributes.log.select.select_attributes_from_log_for_tree(log: EventLog, max_cases_for_attr_selection=50, max_diff_occ=12.5)[source]#

Select attributes from log for tree

Parameters:
  • log – Log

  • max_cases_for_attr_selection – Maximum number of cases to consider for attribute selection

  • max_diff_occ – Maximum number of different occurrences

pm4py.statistics.attributes.log.select.check_trace_attributes_presence(log: EventLog, attributes_set: Set[str] | List[str]) → Set[str] | List[str][source]#

Check trace attributes presence in all the traces of the log

Parameters:
  • log – Log

  • attributes_set – Set of attributes

Returns:

Filtered set of attributes

Return type:

filtered_set

pm4py.statistics.attributes.log.select.check_event_attributes_presence(log: EventLog, attributes_set: Set[str] | List[str]) → Set[str] | List[str][source]#

Check event attributes presence in all the traces of the log

Parameters:
  • log – Log

  • attributes_set – Set of attributes

Returns:

Filtered set of attributes

Return type:

filtered_set

pm4py.statistics.attributes.log.select.verify_if_event_attribute_is_in_each_trace(log: EventLog, attribute: str) → bool[source]#

Verify if the event attribute is in each trace

Parameters:
  • log – Log

  • attribute – Attribute

Returns:

Boolean value that is aiming to check if the event attribute is in each trace

Return type:

boolean

pm4py.statistics.attributes.log.select.verify_if_trace_attribute_is_in_each_trace(log: EventLog, attribute: str) → bool[source]#

Verify if the trace attribute is in each trace

Parameters:
  • log – Log

  • attribute – Attribute

Returns:

Boolean value that is aiming to check if the trace attribute is in each trace

Return type:

boolean