FunctionalTableTransformer¶
Wraps a callable so that it conforms to the TableTransformer interface.
Parent type: TableTransformer
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
transformer |
(table: Table) -> (transformedTable: Table) |
A callable that receives a table and returns a table. | - |
Stub code in FunctionalTableTransformer.sdsstub
isFitted¶
Whether the transformer is fitted.
Type: Boolean
fit¶
Note: For FunctionalTableTransformer this is a no-OP.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
table |
Table |
Required only to be consistent with other transformers. | - |
Results:
| Name | Type | Description |
|---|---|---|
fittedTransformer |
FunctionalTableTransformer |
Returns self, because this transformer is always fitted. |
Stub code in FunctionalTableTransformer.sdsstub
fitAndTransform¶
Note: For the FunctionalTableTransformer this is the same as transform().
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
table |
Table |
The table on which the callable is to be executed. | - |
Results:
| Name | Type | Description |
|---|---|---|
fittedTransformer |
FunctionalTableTransformer |
Return self because the transformer is always fitted. |
transformedTable |
Table |
The transformed table. |
Stub code in FunctionalTableTransformer.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. |