pasteur.extras.transformers.FixedValueTransformer#
- class pasteur.extras.transformers.FixedValueTransformer(dtype='date', value=None, **_)[source]#
The transform function of this transformer returns an empty dataframe and when reversing it returns the columns with a fixed value.
Used for the anchoring date of a table.
Attributes
For a given output, the input is the same.
The decoded output equals the input.
Transformer fits variables.
Methods
fit(data)Fits to the provided data
fit_transform(data)- rtype:
DataFrame
- rtype:
Mapping[str|tuple[str],Attribute]
get_factory(*args, **kwargs)Returns a factory that registers this module to the system.
reduce(other)reverse(data)- rtype:
Series
transform(data)- rtype:
DataFrame
- deterministic = True#
For a given output, the input is the same.
- fit_transform(data)#
- Return type:
DataFrame
- classmethod get_factory(*args, **kwargs)#
Returns a factory that registers this module to the system.
Any *args and **kwargs passed to this function will be saved and passed to the module’s __init__() method when calling build().
- lossless = True#
The decoded output equals the input.
-
name:
str= 'fixed'#
- reduce(other)#
- stateful = True#
Transformer fits variables.