Skip to content

도서를 후 깃허브에 내용 다운로드 후 실행해보고 있는데 오류가 발생하여 문의 드립니다.  #5

@ghost

Description

깃서브 내용 다운로드 후 실행해보고 있는데 몇가지 오류가 발생하여 확인 요청 드립니다.

  1. import시 아래 모듈을 추가 설치해야 가능(requirements.txt에 추가 요청드립니다.)
    pip install PyPortfolioOpt
    pip install exchange_calendars
  2. 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. 마지막으로 현재 깃허브의 소스가 3개월전으로 되어 있는 것 같은데 시간이 되신다면 프로그램 전수검사 요청드립니다.
    감사합니다.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions