<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def drawdown_idx(self):
 """Drawdown index; TSeries of drawdown from running HWM. Returns ------- TSeries """


        ri = self.ret_idx()
        return ri / np.maximum(ri.cummax(), 1.0) - 1.0