fmilthaler / FinQuant

A program for financial portfolio management, analysis and optimisation.
MIT License
1.38k stars 190 forks source link

AttributeError: module 'pandas.core' has no attribute 'index' #39

Closed slpenn13 closed 4 years ago

slpenn13 commented 4 years ago

Causes: tests to fail with pandas (panda.core now PRIVATE).

slpenn13 commented 4 years ago

After replacing pd.MultiIndex causes: (1) all 59 tests to pass (2) portfolio example to run

LevPerla commented 4 years ago

To fix that you need to replace in portfolio.py all cases of pd.core.index.MultiIndex with pd.core.indexes.multi.MultiIndex

slpenn13 commented 4 years ago

Completed Feb 12 -- see my branch, thank you!!

Stephen L. Pennington C: (646) 640-6602 G: Austin, TX E: slpenn13@hotmail.com


From: Lev Perla notifications@github.com Sent: Tuesday, March 17, 2020 7:40 AM To: fmilthaler/FinQuant FinQuant@noreply.github.com Cc: Stephen Pennington slpenn13@hotmail.com; Author author@noreply.github.com Subject: Re: [fmilthaler/FinQuant] AttributeError: module 'pandas.core' has no attribute 'index' (#39)

To fix that you need to replace in portfolio.py all cases of pd.core.index.MultiIndex with pd.core.indexes.multi.MultiIndex

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/fmilthaler/FinQuant/issues/39#issuecomment-600048392, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABGF7ITHNHEERCKV52376B3RH5VUJANCNFSM4KTSURLA.

fmilthaler commented 4 years ago

This has been solved by merge #46