Hi folks,
Just a quick report about a warning that pops up when importing pandas_datareader.
โฏ python
Python 3.8.2 (default, Mar 11 2020, 00:29:50)
[Clang 11.0.0 (clang-1100.0.33.17)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pandas
>>> import pandas_datareader
...python3.8/site-packages/pandas_datareader/compat/__init__.py:7: FutureWarning: pandas.util.testing is deprecated. Use the functions in the public API at pandas.testing instead.
from pandas.util.testing import assert_frame_equal
>>> pandas_datareader.__version__
'0.8.1'
>>> pandas.show_versions()
INSTALLED VERSIONS
------------------
commit : None
python : 3.8.2.final.0
python-bits : 64
OS : Darwin
OS-release : 19.3.0
machine : x86_64
processor : i386
byteorder : little
LC_ALL : None
LANG : fr_CA.UTF-8
LOCALE : fr_CA.UTF-8
pandas : 1.0.3
numpy : 1.18.2
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 46.0.0
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.5.0
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 3.0.0a1
IPython : None
pandas_datareader: 0.8.1
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : 4.5.0
matplotlib : 3.2.1
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pytest : None
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : None
tables : None
tabulate : 0.8.6
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
numba : None
Thanks.
Depending on what you are doing simpley changing the import statement in
python3.8/site-packages/pandas_datareader/compat/__init__.py
from
from pandas.util.testing import assert_frame_equal
to
from pandas.testing import assert_frame_equal
My PR implementing @zackproject suggestion didn't pass the CI checks. I don't have time to further review but I hope someone can resolve the PR checks and get this patch implemented.
I know this has been closed in Apr. 23rd, but the warning still persists.
Just stopped the warning following @zackproject advice.
For the Anaconda users I suggest to look for the pandas_datareader fodler in the sitepackage of the used env.
Hey @bashtage,
This is still happening.
Still happening in colab py 3.6
Most helpful comment
Depending on what you are doing simpley changing the import statement in
python3.8/site-packages/pandas_datareader/compat/__init__.pyfrom
from pandas.util.testing import assert_frame_equalto
from pandas.testing import assert_frame_equal