博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Jupyter Notebook 直方图可视化豆瓣电影TOP20评分
阅读量:3962 次
发布时间:2019-05-24

本文共 360 字,大约阅读时间需要 1 分钟。

@author XGan 2019/11/20 周三

数据格式CSV文件

在这里插入图片描述

Python代码

import matplotlib.pyplot as pltimport numpy as npimport pandas as pd#读取数据dataset=pd.read_csv('D:\\OtherInstall\\Jupyter\\JupyterWorkspace\\data\\movie.csv')#拿到startop20star = dataset['star']print(star.head(20))#设置画布大小plt.figure(figsize=(12,8),dpi=70)#设置x,y轴plt.xlim(1,20)plt.ylim(0,10)plt.plot(star)plt.show()

运行结果

在这里插入图片描述

在这里插入图片描述

转载地址:http://jhqzi.baihongyu.com/

你可能感兴趣的文章
Linux文件系统目录结构的详细解说(一)
查看>>
TIME_WAIT状态的意义
查看>>
千万不要把 bool 设计成函数参数
查看>>
linux文件属性及权限详解
查看>>
Find 命令使用详解
查看>>
Ext4,Ext3的特点和区别
查看>>
Linux文件系统目录结构的详细解说(二)
查看>>
Linux umount 报 device is busy 的处理方法
查看>>
一个大小为n的数组,里面的数都属于范围[0, n-1],有不确定的重复元素,找到至少一个重复元素,要求O(1)空间和O(n)时间。
查看>>
提供机制而不是策略
查看>>
内核中断机制
查看>>
内核抢占
查看>>
编译linux内核源码 ubuntu
查看>>
epoll使用详解
查看>>
epoll
查看>>
The AnimationClip 'Walk' used by the Animation component 'Pig' must be marked as Legacy.
查看>>
《Linux内核设计与实现》- Linux的进程
查看>>
《Linux内核设计与实现》- 进程的调度
查看>>
inet_ntoa()
查看>>
POSIX消息队列mq_open问题
查看>>