AttributeError: Unknown property color_cycle

后端 未结 1 1149
故里飘歌
故里飘歌 2021-01-05 17:20

I am learning \'pandas\' and trying to plot id column but I get an error AttributeError: Unknown property color_cycle and empty graph. The graph on

1条回答
  •  失恋的感觉
    2021-01-05 17:43

    There's currently a bug in Pandas 0.17.1 with Matplotlib 1.5.0

    print pandas.__version__
    print matplotlib.__version__
    

    Instead of using

    import pandas as pd
    pd.set_option('display.mpl_style', 'default')
    

    Use:

    import matplotlib
    matplotlib.style.use('ggplot')
    

    0 讨论(0)
提交回复
热议问题