数据分析07_pandas绘图函数

1.简单图

简单的Series图表示例,plot()
简单的DataFrame图表示例,plot()

2.柱状图

Series柱状图示例,kind = 'bar'/'barh'

3.直方图

方图是特殊形状的柱状图
#表示数据分布的情况
#又叫密度图
#s.plot(kind = “hist”)
#normed归一化处理

s.hist(grid = False, bins = 20, normed = True)

直方图hist,函数中必须添加属性normed = True

发布了388 篇原创文章 · 获赞 71 · 访问量 12万+

猜你喜欢

转载自blog.csdn.net/ZZQHELLO2018/article/details/103945694
今日推荐