pandas不能在pycharm中使用plot()方法显示图像的解决方法

mac2024-06-22  43

参考解决方案:https://blog.csdn.net/zhaohansk/article/details/50505636

 

import numpy as np import pandas as pd from matplotlib import pyplot as plt df = pd.DataFrame([[1,2,3],[4,5,6]],index=["a","b"],columns=list("CDE")) print(df.plot()) // 加上这个方法就可以看到图了 plt.show()

 

最新回复(0)