31
當我運行程序時,Pandas每次都會給出如下所示的「未來警告」。如何抑制熊貓未來警告?
D:\Python\lib\site-packages\pandas\core\frame.py:3581: FutureWarning: rename with inplace=True will return None from pandas 0.11 onward
" from pandas 0.11 onward", FutureWarning)
我得到了味精,但我只是想阻止大熊貓一再表示這種味精,是沒有辦法,我可以設置爲讓大熊貓不彈出的「未來警告」任何的buildin參數?
這已經在0.11-dev的刪除(0.11很快到來) – Jeff
這並沒有爲我工作。我正在使用anaconda python3(2017年9月21日) –
nb:將'warnings .... ignore' _before_導入熊貓...'使'FutureWarning'被忽略。 – michael