tensortrade.feed.api.float.imputation module¶
-
tensortrade.feed.api.float.imputation.
ffill
(s: tensortrade.feed.core.base.Stream[float][float]) → tensortrade.feed.core.base.Stream[float][float][source]¶ Fill in missing values by forward filling.
Parameters: s (Stream[float]) – A float stream. Returns: Stream[float] – An imputed stream via forward filling.
-
tensortrade.feed.api.float.imputation.
fillna
(s: tensortrade.feed.core.base.Stream[float][float], fill_value: float = 0.0) → tensortrade.feed.core.base.Stream[float][float][source]¶ Fill in missing values with a fill value.
Parameters: - s (Stream[float]) – A float stream.
- fill_value (float) – A value to fill in missing values with.
Returns: Stream[float] – An imputed stream via padding.