Marigold / universal-portfolios

Collection of algorithms for online portfolio selection
Other
779 stars 214 forks source link

from pandas.stats.moments import rolling_mean as rolling_m ModuleNotFoundError: No module named 'pandas.stats' #15

Closed SPIRY-RO closed 6 years ago

SPIRY-RO commented 6 years ago
    from universal import tools
  File "C:\spiry.ai\envs\dlwin36\lib\site-packages\universal_portfolios-0.3.2-py3.6.egg\universal\tools.py", line 5, in <module>
    from pandas.stats.moments import rolling_mean as rolling_m
ModuleNotFoundError: No module named 'pandas.stats'

I am running a code that uses universal-portfolio as library but I get this error that seems to come from universal-portfolios itself.

Marigold commented 6 years ago

Hm, pandas library made some breaking changes in version 0.23. Could you either run pip install pandas==0.22.0 or reinstall universal-portfolios (I've updated the version on PyPi)?

SPIRY-RO commented 6 years ago

I will try it, but already move-on of using universal-portfolios.

Thanks for support!

windwine commented 5 years ago

reverting back to 0.22.0 is messing up with other pd functions. Is there a way to work around it? THX.