Skip to content

function

Lambda(fn)

Bases: Transform

Apply a custom function to the data of an environment.

Initializes the Lambda transform.

Parameters:

Name Type Description Default
fn Callable[[DataFrame], DataFrame]

Function handle to be applied to the data.

required
Source code in src/flowcean/transforms/function.py
15
16
17
18
19
20
21
def __init__(self, fn: Callable[[pl.DataFrame], pl.DataFrame]) -> None:
    """Initializes the Lambda transform.

    Args:
        fn: Function handle to be applied to the data.
    """
    self.fn = fn