Skip to main content
Version: 25.2

snorkelflow.client.lfs.execute_lfs

snorkelflow.client.lfs.execute_lfs(node_uid, pkg_uid, df)

Given a package_uid, node_uid and a df => retrieve the LFs from the package and run it over the data in the df

Parameters

NameTypeDefaultInfo
node_uidintUID of the node at which LFs are packaged.
pkg_uidintUID of the LF package whose LFs are applied to a dataframe.
dfDataFrameDataframe LFs are applied over.

Returns

Dataframe with an additional column containing LF vote for each LF

Return type

pd.DataFrame