tensortrade.feed.api.float.imputation module¶
- tensortrade.feed.api.float.imputation.ffill(s: Stream[float]) Stream[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: Stream[float], fill_value: float = 0.0) Stream[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.