Skip to content

rockfish.actions.apply_transform

Attributes

Number = Union[int, float] module-attribute

Scalar = Union[int, float, bool, str] module-attribute

Classes

ApplyConfig dataclass

Configuration class for the Apply action.

Attributes:

Name Type Description
function Function

Function to apply.

append_field Field

New field name to append to dataset.

TransformConfig dataclass

Configuration class for the Transform action.

Attributes:

Name Type Description
function Function

Function to use for the transformation.

Function dataclass

Add dataclass

Cast dataclass

Divide dataclass

FillNull dataclass

FillNull replaces null values in a field with a Scaler fill_value.

Attributes:

Name Type Description
field Field

Field name to operate over.

fill_value Scalar

Value to replace nulls with.

FillNullAggregation dataclass

FillNullAggregation replaces null values in a field with the results of an aggregation function on that same field.

Attributes:

Name Type Description
field Field

Field name to operate over.

agg Literal['mean', 'median']

FillNullBackward dataclass

FillNullBackward replaces null values in a field with the next non-null value.

Attributes:

Name Type Description
field Field

Field name to operate over.

FillNullForward dataclass

FillNullForward replaces null values in a field with the previous non-null value.

Attributes:

Name Type Description
field Field

Field name to operate over.

JoinFields dataclass

Multiply dataclass

Remap dataclass

Subtract dataclass