code: def daily_returns(ts, **kwargs):
      ''' re-compute ts on a daily basis '''
      relative = kwargs.get('relative', 0)
      return returns(ts, delta=BDay(), relative=relativef daily_returns(ts, **kwargs):
      ''' re-compute ts on a daily basis '''
      relative = kwargs.get('relative', 0)
      return returns(ts, delta=BDay(), relative=relative)
docs: re-compute ts on a daily basis