깃서브 내용 다운로드 후 실행해보고 있는데 몇가지 오류가 발생하여 확인 요청 드립니다.
- import시 아래 모듈을 추가 설치해야 가능(requirements.txt에 추가 요청드립니다.)
pip install PyPortfolioOpt
pip install exchange_calendars
- simulate_mean_variance에서 아래 오류 발생
발생 위치 : return_data_slice = return_data.loc[:date].iloc[-look_back:]
TypeError: cannot do slice indexing on DatetimeIndex with these indexers [(Timestamp('2018-07-31 00:00:00'),)] of type tuple
- 마지막으로 현재 깃허브의 소스가 3개월전으로 되어 있는 것 같은데 시간이 되신다면 프로그램 전수검사 요청드립니다.
감사합니다.
깃서브 내용 다운로드 후 실행해보고 있는데 몇가지 오류가 발생하여 확인 요청 드립니다.
pip install PyPortfolioOpt
pip install exchange_calendars
발생 위치 : return_data_slice = return_data.loc[:date].iloc[-look_back:]
TypeError: cannot do slice indexing on DatetimeIndex with these indexers [(Timestamp('2018-07-31 00:00:00'),)] of type tuple
감사합니다.