在运行Python程序的时候遇到了如下的问题:
/anaconda3/lib/python3.7/site-packages/numpy/core/_asarray.py:85: UserWarning: Warning: converting a masked element to nan.
return array(a, dtype, copy=False, order=order)
在网上寻求到的解决办法,但是一直没有找到理想的答案,所以只是吧找到的认为靠谱的总结了一下,参考网址:https://stackoverflow.com/questions/16236644/userwarning-converting-a-masked-element-to-nan
- 使用warnings package 将warnings转换成exceptions问题;
最终还是没有解决这个问题,如果大家有好的方法,欢迎指教。
网友评论