Python Forum
FutureWarning: pandas.util.testing is deprecated
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FutureWarning: pandas.util.testing is deprecated
#1
I am using anaconda3 windows10
I am coding main.ipynb using jupyter notebook
I wrote a function in 2.py which is in the same folder as the main.ipynb

when after I updated the 2.py and saved file, and trying run the code in main,
I find Jupiter not picking up the updated code 2.py file even I ran the code from the very top to bottom.
I have to restart the kernel for every single update in the 2.py

and showing me an error
Error:
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
Does anyone know what can I do about this?
Reply
#2
(May-17-2020, 05:51 AM)buunaanaa Wrote: Does anyone know what can I do about this?
How should anyone now what you have done or the content it apply to Dodgy
it's the message i talk about in post #4.
Just to show that i also can get this message.
(my_env) E:\div_code\my_env
λ python
Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 21:26:53) [MSC v.1916 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pinkfish as pf
Error:
E:\div_code\my_env\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
So this is to get pinkfish to work,after edit of source code in fetch.py.
As i told you can ignore this message.
import one more time in same run and is't gone.
>>> import pinkfish as pf
>>>
Put you got other problems after this fix,
then i did show how to run all of this in virtual environment post #8.
Reply
#3
sorry, this is not related to the last problem I had.

#main.ipynb
import pandas as pd
import numpy as np
import os

from pandas import DataFrame
from datetime import datetime
import matplotlib.pyplot as plt

#import pyEX as p
import csv
import requests
import matplotlib.pyplot as plt
import matplotlib.dates as mdates
import matplotlib as mpl
%matplotlib inline
from matplotlib.pylab import rcParams
import seaborn as sns
# from talib.abstract import *
# from pandas_datareader import data
import pandas_datareader as dr
import pandas_datareader.data as web

import buunaanaa
x=2
buunaanaa.readbuu(x)
here is the second file:
#buunaanaa.py

def readbuu(x):
    print('111')
    return x
when i add a line into the 2nd part:
#buunaanaa.py

def readbuu(x):
    print('111')
    # after i added next line and save the file, it won't show 222 unless i reseat the kernel 
    print('222')
    return x
after i saved buunaanaa.py and run the code in main.ipynb, it won't show 222 unless i restart the kernel.

at the same time it shows me an error
Error:
D:\programs\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
BTW, I un-install the Anaconda and re-installed it completely after I had issues with old pandas.
Reply
#4
It's from pandas-datareader and the issue is reported
You can just ignore as it's warning not an error.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  FutureWarning: The behavior of DataFrame concatenation with empty or all-NA entries i sawtooth500 3 383 Mar-22-2024, 03:08 AM
Last Post: deanhystad
  Juypter Notebook_Library_keras.util. dackley27 0 1,097 Sep-28-2021, 06:21 PM
Last Post: dackley27
  Python 3.7.4 (FTPLib Deprecated). Now What? bmccollum 1 2,561 May-16-2020, 03:17 PM
Last Post: Larz60+
  Question about YAMLLoadWarning (PyYAML error / deprecated) UniKlixX 4 4,149 Sep-10-2019, 11:49 AM
Last Post: UniKlixX

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020