直方图、柱状图、饼状图、散点图、箱线图
使用pandas绘图,快速获取洞见,用pandas即可
若要深入研究细节,要自定义可视化界面,就要用到matplotlib
在jupyter notebook画图,输入 % matplotlib inline 从而可以在notebook内部查看数据图
pandas画图大全
python画hist直方图www.jianshu.com![v2-8fc84af548a9fd73cb6445c38831bf4a_180x120.jpg](http://img-02.proxy.5ce.com/view/image?&type=2&guid=54e84749-0730-eb11-8da9-e4434bdf6706&url=https://pic3.zhimg.com/v2-8fc84af548a9fd73cb6445c38831bf4a_180x120.jpg)
- 直方图 hist
- hist函数:查看df中所有值列的直方图,直方图可以看出分布
- df.hist()
- df.hist(figsize = (8,8)); 可以用分号隐藏不需要输出的内容
- df['col'].hist();
- plot函数:df['col'].plot(kind = 'hist');
2. 柱状图 bar / 横向 barh
- df['col'].value_counts().plot(kind = 'bar')