feed.api.generic.imputation module

imputation.py contains classes for imputation stream operations.

class feed.api.generic.imputation.FillNa(fill_value: T)[source]

Bases: feed.core.base.Stream

A stream operator that computes the padded imputation of a stream.

Parameters:fill_value (T) – The fill value to use for missing values in the stream.
forward() → T[source]

Generates the next value from the underlying data streams.

Returns:The next value in the stream.
Return type:T
generic_name = 'fillna'
has_next() → bool[source]

Checks if there is another value.

Returns:If there is another value or not.
Return type:bool
class feed.api.generic.imputation.ForwardFill[source]

Bases: feed.core.base.Stream

A stream operator that computes the forward fill imputation of a stream.

forward() → T[source]

Generates the next value from the underlying data streams.

Returns:The next value in the stream.
Return type:T
generic_name = 'ffill'
has_next() → bool[source]

Checks if there is another value.

Returns:If there is another value or not.
Return type:bool