pm4py.org.discover_subcontracting_network#
- pm4py.org.discover_subcontracting_network(log: EventLog | DataFrame, n=2, resource_key: str = 'org:resource', timestamp_key: str = 'time:timestamp', case_id_key: str = 'case:concept:name') SNA [source]#
Calculates the subcontracting network of the process.
- Return type:
- Parameters:
log – event log / Pandas dataframe
n (
int
) – n parameter for Subcontracting metricresource_key (
str
) – attribute to be used for the resourcetimestamp_key (
str
) – attribute to be used for the timestampcase_id_key (
str
) – attribute to be used as case identifier
import pm4py metric = pm4py.discover_subcontracting_network(dataframe, resource_key='org:resource', timestamp_key='time:timestamp', case_id_key='case:concept:name')