lale.lib.rasl.map module¶
- class lale.lib.rasl.map.Map(*, columns=[], remainder='drop')¶
Bases:
PlannedIndividualOp
Relational algebra map operator.
This documentation is auto-generated from JSON schemas.
- Parameters
columns (union type, optional, not for optimizer, default []) –
Mappings for producing output columns.
dict
Dictionary of output column names and mapping expressions.
or array of items : expression
List of mapping expressions. The output column name is determined by a heuristic based on the input column name and the transformation function.
or callable, not for optimizer
A callable which, when given the input data, returns either a list or dictionary of mapping expressions, as above.
remainder (union type, optional, not for optimizer, default 'drop') –
Transformation for the remaining columns.
’passthrough’ or ‘drop’
or operator
Mapping expression.
- fit(X, y=None, **fit_params)¶
Train the operator.
Note: The fit method is not available until this operator is trainable.
Once this method is available, it will have the following signature:
- Parameters
X (union type) –
The outer array is over rows.
Any
or array
items : array of items : Any
The inner array is over columns.
- transform(X, y=None)¶
Transform the data.
Note: The transform method is not available until this operator is trained.
Once this method is available, it will have the following signature:
- Parameters
X (union type) –
The outer array is over rows.
Any
or array
items : array of items : Any
The inner array is over columns.
- Returns
result – The outer array is over rows.
array
items : array of items : Any
The inner array is over columns.
or Any
- Return type
union type