@创建于:20210716
@更新于:20210716、20210812
1、matplotlib 画图
2、DataFrame画图
- dataframe画图,看着一篇就够了。Pandas高级教程之:plot画图详解
- 官网:pandas.DataFrame.plot
- 官网:pandas.DataFrame.hist
- 官网:pandas.DataFrame.boxplot
- Pandas中,画直方图Hist 的四种方法,以及其他绘图
- groupby()以及绘图
3、RuntimeWarning: More than 20 figures have been opened
绘图出现以下警告:RuntimeWarning: More than 20 figures have been opened.
RuntimeWarning: More than 20 figures have been opened. Figures created through the pyplot interface (matplotlib.pyplot.figure) are retained until explicitly closed and may consume too much memory.
这是因为循环太多,每个循环里面画了一张图,所以可以在每个循环内把plt关闭。
plt.close()
原文链接:https://blog.csdn.net/weixin_43843657/article/details/88716369