Skip to content

Functional table transformer #858

@lars-reimann

Description

@lars-reimann

Is your feature request related to a problem?

Currently, users can transform a table either with a TableTransformer or with the methods of Table. However, only a TableTransformer can be used in a SequentialTableTransformer (see #802).

Desired solution

  • Add a new class FunctionalTableTransformer
  • Superclass: TableTransformer
  • Constructor parameters:
    • transformer: Callable[[Table], Table] The function transforms a table and returns the transformed table.
  • is_fitted: Always True, immediately after constructing the model.
  • fit: Is a no-OP. Just return self.
  • transform: Call the transformer you got in the constructor and return the result.

Possible alternatives (optional)

No response

Screenshots (optional)

No response

Additional Context (optional)

No response

Metadata

Metadata

Labels

releasedIncluded in a release

Type

No type

Projects

Status

✔️ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions