昨天学习pandas和matplotlib的过程中, 在jupyter notebook遇到ImportError: matplotlib is required for plotting错误, 以下是解决该问题的具体描述...")
5 plt.xlabel("Year")
6 plt.ylabel("Percentage")
7 plt.show()
在jupyter notebook中执行上述代码, 抛出以下错误:
ImportError...6 plt.show()
在jupyter notebook中能够成功运行:
?...再次运行pandas的plot()方法, 仍然报错, 而且再次检查没有发现语句中存在错误.
那么问题来了, 为什么pandas中的plot()方法不能用?
3....在pycharm中能够成功运行, 而在jupyter notebook中不能运行, 看起是IDE的问题, 那么两者存在什么差异呢:
就我个人电脑而言, pycharm是我刚刚启动的(安装好matplotlib