NaFiller

class hypex.transformers.NaFiller(target_roles=None, values=None, method=None, key='')[source]

Bases: Transformer

__init__(target_roles=None, values=None, method=None, key='')[source]

Initializes a NaFiller object.

Parameters:
  • target_roles (Optional[Union[str, Sequence[str]]], optional) – The roles of the target columns. Defaults to None.

  • key (Any, optional) – The key for the NaFiller object. Defaults to “”.

  • values (Union[ScalarType, Dict[str, ScalarType]], optional) – The values to fill missing values with. Defaults to None.

  • method (Literal["bfill", "ffill"], optional) – The method to fill missing values. Defaults to None.

Returns:

None