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
#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


Messages In This Thread
RE: FutureWarning: pandas.util.testing is deprecated - by buunaanaa - May-17-2020, 07:03 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  FutureWarning: The behavior of DataFrame concatenation with empty or all-NA entries sawtooth500 14 818 Apr-24-2024, 01:42 AM
Last Post: sawtooth500
  FutureWarning: The behavior of DataFrame concatenation with empty or all-NA entries i sawtooth500 3 1,799 Mar-22-2024, 03:08 AM
Last Post: deanhystad
  Juypter Notebook_Library_keras.util. dackley27 0 1,181 Sep-28-2021, 06:21 PM
Last Post: dackley27
  Python 3.7.4 (FTPLib Deprecated). Now What? bmccollum 1 2,655 May-16-2020, 03:17 PM
Last Post: Larz60+
  Question about YAMLLoadWarning (PyYAML error / deprecated) UniKlixX 4 4,336 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