美文网首页
Python:UserWarning: Warning: con

Python:UserWarning: Warning: con

作者: 夏天不热也不冷 | 来源:发表于2020-01-31 23:50 被阅读0次

    在运行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问题;

    最终还是没有解决这个问题,如果大家有好的方法,欢迎指教。

    相关文章

      网友评论

          本文标题:Python:UserWarning: Warning: con

          本文链接:https://www.haomeiwen.com/subject/bfdathtx.html