
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
변동성 돌파전략에서 마지막 날자의 전략이 종료되지 않아서 문제가 발생하는 것 같은데요. 잘 모르겠습니다.

---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-53-fde6baa8e125> in <cell line: 1>()
----> 1 get_return('005930',0.4)
<ipython-input-51-593cc6176c36> in get_return(code, k)
17 df['return'] = df['sell_at'] / df['buy_at']
18
---> 19 return df[['return']].cumprod().iloc(-1,-1) - 1
20
TypeError: _LocationIndexer.__call__() takes from 1 to 2 positional arguments but 3 were given
