bad operand type for unary ~: NoneType
384 index = _pd.concat([index, rbdf["break"]], axis=1)
385
386 # mark first day day
387 index["first_day"] = _pd.isna(index["break"]) & ~_pd.isna(index["break"].shift(1))388 index.loc[index.index[0], "first_day"] = True
389
390 # multiply first day of each rebalance period by the weight
Description
A unary operand is used on an object which does not support this type of operation. This is an error.