ranaroussi / quantstats

Unary operand used on an unsupported object PYL-E1130
Bug risk
Critical
1 occurrence in this check
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