[docs]@Float.register(["fillna"])deffillna(s:"Stream[float]",fill_value:float=0.0)->"Stream[float]":"""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. """returnFillNa(fill_value=fill_value)(s).astype("float")
[docs]@Float.register(["ffill"])defffill(s:"Stream[float]")->"Stream[float]":"""Fill in missing values by forward filling. Parameters ---------- s : `Stream[float]` A float stream. Returns ------- `Stream[float]` An imputed stream via forward filling. """returnForwardFill()(s).astype("float")