pasteur.extras.encoders.IdxEncoder#

class pasteur.extras.encoders.IdxEncoder(*args, _from_factory=False, **kwargs)[source]#

Attributes

name

Methods

decode(enc)

rtype:

DataFrame

encode(data)

rtype:

DataFrame

fit(attr, data)

get_factory(*args, **kwargs)

Returns a factory that registers this module to the system.

get_metadata()

rtype:

dict[str | tuple[str], Attribute]

reduce(other)

decode(enc)[source]#
Return type:

DataFrame

encode(data)[source]#
Return type:

DataFrame

fit(attr, data)[source]#
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().

get_metadata()[source]#
Return type:

dict[str | tuple[str], Attribute]

name: str = 'idx'#
reduce(other)#