Matplotlib用于数据分析可视化展示基于pandas
发布时间
阅读量:
阅读量
- 一、基础的图形可视化呈现
- 二、生成条形统计图
- 三、在同一坐标系中叠加展示两种不同类别的图表
- 四、利用pandas库读取excel文件数据并绘制频率分布直方图
- 五、制作箱型图
一、简单的绘图展示
randomList = np.random.randn(10).cumsum()
randomList
#结果
'''
array([ 0.43692622, -0.17404988, 0.8479853 , 1.39711286, 1.67546532,
4.37286221, 4.22259538, 4.40355887, 4.38907365, 4.45077964])
'''
s = pd.Series(randomList,
index=np.arange(0,100,10))# index 指定序列中每个元素的索引
s
#结果
'''
0 0.43692
全部评论 (0)
还没有任何评论哟~
