SequentialTableTransformer¶
The SequentialTableTransformer transforms a table using multiple transformers in sequence.
Parent type: InvertibleTableTransformer
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
transformers |
List<TableTransformer> |
The list of transformers used to transform the table. Used in the order as they are supplied in the list. | - |
Stub code in SequentialTableTransformer.sdsstub
isFitted¶
Whether the transformer is fitted.
Type: Boolean
fit¶
Fits all the transformers in order.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
table |
Table |
The table used to fit the transformers. | - |
Results:
| Name | Type | Description |
|---|---|---|
fittedTransformer |
SequentialTableTransformer |
The fitted transformer. |
Stub code in SequentialTableTransformer.sdsstub
fitAndTransform¶
Learn a transformation for a set of columns in a table and apply the learned transformation to the same table.
Note: Neither this transformer nor the given table are modified.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
table |
Table |
The table used to fit the transformer. The transformer is then applied to this table. | - |
Results:
| Name | Type | Description |
|---|---|---|
fittedTransformer |
SequentialTableTransformer |
The fitted transformer. |
transformedTable |
Table |
The transformed table. |
Stub code in SequentialTableTransformer.sdsstub
inverseTransform¶
Undo the learned transformation as well as possible.
Column order and types may differ from the original table. Likewise, some values might not be restored.
Note: The given table is not modified.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
transformedTable |
Table |
The table to be transformed back to the original version. | - |
Results:
| Name | Type | Description |
|---|---|---|
originalTable |
Table |
The original table. |
Stub code in InvertibleTableTransformer.sdsstub
transform¶
Apply the learned transformation to a table.
Note: The given table is not modified.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
table |
Table |
The table to which the learned transformation is applied. | - |
Results:
| Name | Type | Description |
|---|---|---|
transformedTable |
Table |
The transformed table. |