【发布时间】:2018-07-25 14:32:53
【问题描述】:
如何在 pandas 中抑制 PerformanceWarning?
我已经尝试过warnings.simplefilter(action='ignore', category=PerformanceWarning),但它给了我一个NameError: name 'PerformanceWarning' is not defined
【问题讨论】:
-
你能试着把
warnings.simplefilter(action='ignore', category=PerformanceWarning)放在import pandas前面吗?
标签: python pandas suppress-warnings