Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught Exception: FutureWarning: pandas.util.testing is deprecated. Use the functions in the public API at pandas.testing instead. #126

Open
cryptocoinserver opened this issue Jul 19, 2020 · 1 comment

Comments

@cryptocoinserver
Copy link

cryptocoinserver commented Jul 19, 2020

  File "/usr/local/bin/jesse", line 11, in <module>
    load_entry_point('jesse', 'console_scripts', 'jesse')()
  File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/home/src/jesse/jesse/__init__.py", line 307, in backtest
    from jesse.modes import backtest_mode
  File "/home/src/jesse/jesse/modes/backtest_mode/__init__.py", line 10, in <module>
    import jesse.services.statistics as stats
  File "/home/src/jesse/jesse/services/statistics.py", line 1, in <module>
    import empyrical
  File "/usr/local/lib/python3.8/dist-packages/empyrical/__init__.py", line 21, in <module>
    from .stats import (
  File "/usr/local/lib/python3.8/dist-packages/empyrical/stats.py", line 24, in <module>
    from .utils import nanmean, nanstd, nanmin, up, down, roll, rolling_window
  File "/usr/local/lib/python3.8/dist-packages/empyrical/utils.py", line 27, in <module>
    from pandas_datareader import data as web
  File "/usr/local/lib/python3.8/dist-packages/pandas_datareader/__init__.py", line 2, in <module>
    from .data import (
  File "/usr/local/lib/python3.8/dist-packages/pandas_datareader/data.py", line 11, in <module>
    from pandas_datareader.av.forex import AVForexReader
  File "/usr/local/lib/python3.8/dist-packages/pandas_datareader/av/__init__.py", line 5, in <module>
    from pandas_datareader._utils import RemoteDataError
  File "/usr/local/lib/python3.8/dist-packages/pandas_datareader/_utils.py", line 6, in <module>
    from pandas_datareader.compat import is_number
  File "/usr/local/lib/python3.8/dist-packages/pandas_datareader/compat/__init__.py", line 7, in <module>
    from pandas.util.testing import assert_frame_equal
  File "/usr/local/lib/python3.8/dist-packages/pandas/util/testing.py", line 5, in <module>
    warnings.warn(
=========================================================================
 Uncaught Exception: FutureWarning: pandas.util.testing is deprecated. Use the functions in the public API at pandas.testing instead.```

We have this annoying FutureWarning. Looks like its origin is empyrical.
@leonarduschen
Copy link

This is because pandas.testing API is only available on later versions of pandas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants