Events
EventsManager ¶
Bases: BaseManager
Manages event-level information within an OCEL instance.
Provides access to: - the events table - event activities and activity counts - activity lookup by event ID - event attribute names - structured summaries of event attributes
Acts as a facade over the underlying PM4PY OCEL object.
Source code in src/ocelescope/src/ocelescope/ocel/managers/events.py
df property ¶
Return the event table from the underlying OCEL.
Returns:
| Name | Type | Description |
|---|---|---|
DataFrame | DataFrame | A pandas DataFrame containing all events and their attributes. |
activities property ¶
Return all activity names present in the log.
Returns:
| Type | Description |
|---|---|
list[str] | list[str]: A sorted list of unique activity names. |
activity_counts property ¶
Return the frequency of each activity in the log.
Returns:
| Name | Type | Description |
|---|---|---|
Series | Series | A pandas Series indexed by activity name with occurrence counts. |
activity_by_id property ¶
Return a mapping from event ID to activity.
Returns:
| Name | Type | Description |
|---|---|---|
Series | Series | A pandas Series indexed by event ID, containing activity names as values. |
attribute_names property ¶
Return the names of all event attributes.
Returns:
| Type | Description |
|---|---|
list[str] | list[str]: A sorted list of event attribute names. |
attribute_summary property ¶
Summarize all event attributes grouped by activity.
Returns:
| Type | Description |
|---|---|
dict[str, list[AttributeSummary]] | dict[str, list[AttributeSummary]]: Mapping of activities to |
dict[str, list[AttributeSummary]] | lists of structured attribute summaries. |