quantopian / empyrical

Common financial risk and performance metrics. Used by zipline and pyfolio.
https://quantopian.github.io/empyrical
Apache License 2.0
1.31k stars 406 forks source link

Pandas unable to import datareader deprecation error #110

Open xanderdunn opened 5 years ago

xanderdunn commented 5 years ago

Python 3.5.2 pandas 0.24.2 empyrical 0.5.0

When I call empyrical I always see this error:

/usr/local/lib/python3.5/dist-packages/empyrical/utils.py:32: UserWarning: Unable to import pandas_datareader. Suppressing import error and continuing. All data reading functionality will raise errors; but has been deprecated and will be removed in a later version.
  warnings.warn(msg)

It looks like empyrical's usage of pandas needs to be updated?

TechNickAI commented 4 years ago

The correct call is from pandas.testing import assert_frame_equal