Skip to main content
Version: 25.1

snorkelflow.client.workflows.execute_prediction_api

snorkelflow.client.workflows.execute_prediction_api(client, df, return_outputs=False)

Execute an exported workflow running via Prediction API on a new Pandas DataFrame.

Parameters

NameTypeDefaultInfo
clientHTTPClientSnorkelFlowPredictionAPIClient object.
dfDataFrameData over which to execute the workflow.
return_outputsboolFalseWhether to return workflow output as a dictionary of output names to dataframes. If False, assumes there is only one output in the workflow and directly returns the corresponding the dataframe.

Returns

Dictionary mapping outputs in Workflow DAG to corresponding Pandas DataFrame. If return_outputs is False, assumes there is only 1 output, and returns the corresponding dataframe.

Return type

Dict(str, pandas.DataFrame) or pandas.DataFrame