Skip to content
This repository was archived by the owner on Mar 3, 2026. It is now read-only.
This repository was archived by the owner on Mar 3, 2026. It is now read-only.

Python UDF #698

@jordanrfrazier

Description

@jordanrfrazier

Support user defined functions from the python builder.

Current functionality plan is to only support operations between series or arrays, for example,

def add(x: pd.Series, y: pd.Series) -> pd.Series:
     x +  y

The user experience will be:

  1. Define a python function
  2. Annotate it with the fenl signature
  3. Call it within your query

Step 1:

def add(x: pd.Series, y: pd.Series) -> pd.Series:
    return x + y

Step 2:

@fenl_udf("add", "add(x: number, y: number) -> number")
def add(x: pd.Series, y: pd.Series) -> pd.Series:
    return x + y

Step 3:

kd.udf(add, input1, input2)

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions