[docs]@Boolean.register(["invert"])definvert(s:"Stream[bool]")->"Stream[bool]":"""Inverts the truth value of the given stream. Parameters ---------- s: `Stream[bool]` A boolean stream. Returns ------- `Stream[bool]` An inverted stream of `s`. """returns.apply(lambdax:notx).astype("bool")