设计(论文)题
目
基于 python 的数据可视化分析
主要
研
究内
容
简述数据分析的流程。介绍分析工具——python 的发展历史,优
缺点,与通信相关情况。并对几个常用的库进行说明。最后基于 python
进行一次完整的分析(从数据的获取到处理),把所得到的数据保存
到本地,做相关处理后进行可视化展示(如动态的饼图,词云图)。
研究
方法
在 PYTHON3.7 版本下,使用 requests、pandas 等库进行数据获取
与处理。
主要
技术指标
(或研究目
标)
①用 requests 库爬取目标数据并保存
②用 matplotlib、pandas 对得到的数据进行处理
③用 pyecharts 中的 wordcloud 作出词云图,得出相应结论
教研
室
意见
教研室主任(专业负责人)签字: 年 月 日
I
基于 python 的数据可视化分析
摘要
4G 和即将到来的 5G 时代,会产生大量的数据。对数据科学研究人员来说,可视化分
析显得尤为重要。因为这样的分析使人更易于接受。
在本文中,我们简要介绍数据分析的概念、流程。选择 python 作为分析的工具,介绍
其历史,优缺点,与通信结合的相关情况。其次,进行一次完整的数据分析展示:通过
requests 爬取某网站得到房屋相关数据。再用 matpoltlib,pyecharts 等进行数据的处理,得
到可视化的饼图、词云图。
关键词:数据分析;可视化;python;requests;pyecharts
II
Data visualization analysis based on python
Abstract
4G, and the coming 5G era, will generate a lot of data. Visual analysis is particularly
important for data science researchers. Because such analysis makes users more receptive.
We would recommend the process of data analysis briefly in this paper. Then we would
choose python as the analysis tool and introduce its history, advantages and disadvantages, as
well as relevant situations combined with communication. And perform a complete data analysis
and presentation: climb a website to get houses-related data through the requests database, save it
to local for processing, finally obtain visualized pie charts and word cloud charts.
Keywords: data analysis; visualization; python; requests; pyecharts
- 1 -
目录
目录.....................................................................................................................................- 1 -
第 1 章 绪论.......................................................................................................................- 2 -
1.1 提出背景..............................................................................................................- 2 -
1.2 研究意义 .......................................................- 2 -
1.3 本文主要内容.......................................................................................................- 3 -
第 2 章 PYTHON 基础介绍...................................................................................................- 4 -
2.1 Python 简介 ........................................................................................................- 4 -
2.2 Python 发展历史 ................................................................................................- 4 -
2.3 Python 优缺点 ....................................................................................................- 4 -
2.4 Python 语法举例 ................................................................................................- 5 -
2.5 开发环境选择......................................................................................................- 6 -
2.6 Python 与通信相关 .............................................................................................- 6 -
第 3 章 爬虫相关模块说明...............................................................................................- 7 -
3.1 本章说明..............................................................................................................- 7 -
3.2 requests 库.........................................................................................................- 7 -
3.2.1 定制请求头........................................................................................................- 8 -
3.2.2 响应内容............................................................................................................- 8 -
3.3 pandas 和 matplotlib........................................................................................- 8 -
3.4 程序其他模块......................................................................................................- 9 -
第 4 章 数据可视化分析实例.......................................................................................- 10 -
4.1 流程图说明........................................................................................................- 10 -
4.2 程序一说明及结果分析....................................................................................- 10 -
4.2.1 程序一说明..............................................................................................- 10 -
4.2.2 程序一结果分析......................................................................................- 11 -
4.3 程序二说明及结果分析....................................................................................- 11 -
4.4 程序三说明及结果分析....................................................................................- 14 -
4.5 本章小结............................................................................................................- 15 -
第 5 章 总结与展望.........................................................................................................- 16 -