in Ipython notebook / Jupyter, Pandas is not displaying the graph I try to plot

后端 未结 7 2150
梦谈多话
梦谈多话 2020-12-22 18:27

I am trying to plot some data using pandas in Ipython Notebook, and while it gives me the object, it doesn\'t actually plot the graph itself. So it looks like this:

7条回答
  •  粉色の甜心
    2020-12-22 19:09

    Note that --pylab is deprecated and has been removed from newer builds of IPython, The recommended way to enable inline plotting in the IPython Notebook is now to run:

    %matplotlib inline
    import matplotlib.pyplot as plt
    

    See this post from the ipython-dev mailing list for more details.

提交回复
热议问题