import pandas as pd
import pandas_datareader as pdr
import numpy as np
Reports the following error in the terminal (VS Code)
C:\Users\frede\Anaconda3\lib\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
I have the same problem! I didn麓t find solution yet!
same
This is a warning, not an error.
Same here. I'm not even using pandas.util.testing in my code
same issue without using pandas.util.testing, but only from time to time when the notebook runs (not having changed anything); warnings.filterwarnings("ignore") is set
I had the same issue. Resolved it.
Just open in editor
C:\Users\Amber\AppData\Local\Programs\Python\Python37\Libsite-packages\pandas_datareader\compat__init__.py
Replace:
from pandas.util.testing import assert_frame_equal
with
from pandas.testing import assert_frame_equal
Fixed
from pandas.util.testing import assert_frame_equal
replace to
from pandas.testing import assert_frame_equal
Fixed in the most recent release so upgrade.
import
pandas._testing
as tm;
Most helpful comment
I had the same issue. Resolved it.
Just open in editor
C:\Users\Amber\AppData\Local\Programs\Python\Python37\Libsite-packages\pandas_datareader\compat__init__.py
Replace:
from pandas.util.testing import assert_frame_equalwith
from pandas.testing import assert_frame_equal