Skip to main content
Version: 25.4

snorkelflow.client.operators.execute_operators

warning

This is a beta function in 25.4. Beta features may have known gaps or bugs, but are functional workflows and eligible for Snorkel Support. To access beta features, contact Snorkel Support to enable the feature flag for your Snorkel-hosted instance.

snorkelflow.client.operators.execute_operators(df, processor_config=None, workflow_config=None, return_outputs=False)

Execute a series of operators from a given dataframe, and either a processor_config or a workflow_config.

Parameters

NameTypeDefaultInfo
dfDataFramePandas dataframe to execute operators over.
processor_configOptional[List[Dict[str, Any]]]NoneProcessor config to execute.
workflow_configOptional[Dict[int, Any]]NoneWorkflow config dict to execute.
return_outputsboolFalseWhether to return workflow output as a dictionary of output names to dataframes. If False, returns the dataframe corresponding to the last output in the workflow.

Returns

Returns a dictionary of output names to pandas DataFrames that were computed from the processor_config being run over the input_df. If return_outputs is False, returns the dataframe corresponding to the last output in the workflow.

Return type

Union[Dict[str, pd.DataFrame], pd.DataFrame]