code: def add_func(self, func, *arg, **kwargs):
          
  
          return self.groupby(level=1, sort=False).apply(func, *arg, **kwargs)
docs: QADATASTRUCT的指标/函数apply入口
  
          Arguments:
              func {[type]} -- [description]
  
          Returns:
              [type] -- [description]