
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
5-5주차 강의입니다.
get_return('005930',0.4)
앞에 까지 잘 왔는데,,, 위기도 넘기고...
이런게 왜 생기는거죠?
예전에도 있었는데, 알아서 정리돼서 넘어왔는데...
이젠 알아야겠네요.
작성한 코드 및 에러 메세지
---------------------------------------------------------------------------
IndexError Traceback (most recent call last)
<ipython-input-29-fde6baa8e125> in <cell line: 1>()
----> 1 get_return('005930',0.4)
2 frames
/usr/local/lib/python3.10/dist-packages/pandas/core/frame.py in _get_value(self, index, col, takeable)
3913 if takeable:
3914 series = self._ixs(col, axis=1)
-> 3915 return series._values[index]
3916
3917 series = self._get_item_cache(col)
IndexError: index -1 is out of bounds for axis 0 with size 0오류 발생 시, 작성한 코드 전체와 에러 메시지를 첨부해 주세요.
Tip 1) </> 아이콘을 눌러 코드박스를 만들어 보세요.
Tip 2) Ctrl+A(맥의 경우 Command+A) 단축키로 코드를 한 번에 선택할 수 있어요!
