python报错:FutureWarning: Setting an item of incompatible dtype is deprecated and will raise in a future error of pandas.........has dtype incompatible with float32, please explicitly cast to a compatible dtype first.

不影响程序运行,只是不断弹出影响输出查看。

认为是无关紧要的小问题,不关乎结果正确与否,

采取暴力消除的方式

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

完美解决!

Logo

2万人民币佣金等你来拿,中德社区发起者X.Lab,联合德国优秀企业对接开发项目,领取项目得佣金!!!

更多推荐