pm4py.statistics.start_activities.pandas package

Submodules

pm4py.statistics.start_activities.pandas.get module

class pm4py.statistics.start_activities.pandas.get.Parameters(value)[source]

Bases: enum.Enum

An enumeration.

ACTIVITY_KEY = 'pm4py:param:activity_key'
ATTRIBUTE_KEY = 'pm4py:param:attribute_key'
CASE_ID_KEY = 'case_id_glue'
KEEP_ONCE_PER_CASE = 'keep_once_per_case'
MAX_NO_POINTS_SAMPLE = 'max_no_of_points_to_sample'
START_TIMESTAMP_KEY = 'pm4py:param:start_timestamp_key'
TIMESTAMP_KEY = 'pm4py:param:timestamp_key'
pm4py.statistics.start_activities.pandas.get.get_start_activities(df, parameters=None)[source]

Get start activities count

Parameters
  • df – Pandas dataframe

  • parameters

    Parameters of the algorithm, including:

    Parameters.CASE_ID_KEY -> Case ID column in the dataframe Parameters.ACTIVITY_KEY -> Column that represents the activity

Returns

Dictionary of start activities along with their count

Return type

startact_dict

Module contents