code: def subscribing_strategy(self):
          
  
          res = self.subscribed_strategy.assign(
              remains=self.subscribed_strategy.end.apply(
                  lambda x: pd.Timestamp(x) - pd.Timestamp(datetime.date.today())
              )
          )
          #res['left'] = res['end_time']
          # res['remains']
          res.assign(
              status=res['remains'].apply(
                  lambda x: 'running'
                  if x > datetime.timedelta(days=0) else 'timeout'
              )
          )
          return res.query('status=="running"')
docs: 订阅一个策略
  
          Returns:
              [type] -- [description]