code: def drawdown_end(self, return_date=False):
          
  
          end = self.drawdown_idx().idxmin()
          if return_date:
              return end.date()
          return end
docs: The date of the drawdown trough.
  
          Date at which the drawdown was most negative.
  
          Parameters
          ----------
          return_date : bool, default False
              If True, return a `datetime.date` object.
              If False, return a Pandas Timestamp object.
  
          Returns
          -------
          datetime.date or pandas._libs.tslib.Timestamp