How to suppress Pandas Future warning ?

bigbug picture bigbug · Apr 3, 2013 · Viewed 101.6k times · Source

When I run the program, Pandas gives 'Future warning' like below every time.

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) 

I got the msg, but I just want to stop Pandas showing such msg again and again, is there any buildin parameter that I can set to let Pandas not pop up the 'Future warning' ?

Answer

bdiamante picture bdiamante · Apr 3, 2013

Found this on github...

import warnings
warnings.simplefilter(action='ignore', category=FutureWarning)

import pandas