def dr(self,date):
        """ days remaining before settlement, on a given date """
        return(sum(date > self.series.index))
dataset/ETHPy150Open cmorgan/trading-with-python/cookbook/reconstructVXX/reconstructVXX.py/Future.dr/swapped operands of `>`