How to suppress matplotlib warning?

前端 未结 5 1938
借酒劲吻你
借酒劲吻你 2020-12-01 14:22

I am getting an warning from matplotlib every time I import pandas:

/usr/local/lib/python2.7/site-packages/matplotlib/__init__.py:8         


        
5条回答
  •  有刺的猬
    2020-12-01 14:37

    You can suppress all warnings:

    import warnings
    warnings.filterwarnings("ignore")
    
    import pandas
    

提交回复
热议问题