pyrregular.models.nodes
Nodes. This module contains various pipeline transformer classes for data preprocessing and transformation.
Classes
|
A transformer that applies a specified function to the input data. |
A transformer that applies a function to drop or handle NA values in a DataFrame. |
|
A transformer that returns the input data unchanged. |
- class pyrregular.models.nodes.ApplyFunc(func, fn_kwargs=None)[source]
Bases:
BaseEstimator
,TransformerMixin
A transformer that applies a specified function to the input data.
- Parameters:
func (callable) – The function to apply to the input data.
fn_kwargs (dict, optional) – Additional keyword arguments to pass to the function.
- class pyrregular.models.nodes.DropNATransformer[source]
Bases:
BaseEstimator
,TransformerMixin
A transformer that applies a function to drop or handle NA values in a DataFrame.
This transformer applies the _dropna function element-wise to the input DataFrame.
- class pyrregular.models.nodes.PassthroughTransformer[source]
Bases:
BaseEstimator
,TransformerMixin
A transformer that returns the input data unchanged.
This transformer is useful as a placeholder or when no transformation is needed.