Skip to content

Sequential table transformer #802

@lars-reimann

Description

@lars-reimann

Is your feature request related to a problem?

It's annoying to fit multiple transformers or sequentially transform a table using multiple transformers. This is also a very common operation.

Desired solution

New class SequentialTableTransformer.

  • Superclass: InvertibleTableTransformer
  • Constructor parameters:
    • transformers: list[TableTransformer]
  • fit:
    • Fit the first transformer with the given table
    • Transform the table with the first transformer and fit the second transformer with the transformed table
    • Repeat for the following transformers
  • transform:
    • Transform the table with the first transformer
    • Transform the result with the second transformer
    • Repeat for the following transformers
  • inverse_transform:
    • Raise an error if any transformer is not invertible
    • Inverse-transform the table with the last transformer
    • Inverse-transform the result with the second-to-last transformer
    • Repeat for the following transformers

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