当我运行该程序时,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)
我收到了消息,但我只是想阻止 Pandas 一次又一次地显示此类消息,是否有任何内置参数可以设置让 Pandas 不弹出“未来警告”?
发现这个github https://github.com/pydata/pandas/issues/2841...
import warnings
warnings.simplefilter(action='ignore', category=FutureWarning)
import pandas
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)