这是一个简单 Python 数据分析 Demo,我们准备了一些基础的奥林匹克运动员的个人公开信息数据,在olympic.xlsx
中,其中数据表表头有以下字段:
event name age birthplace attend2016 attend2012 attend2008 attendtimes gold silver bronze medal xz gender birthday height weight arm leg
我们使用 Pandas
、Numpy
等库来分析这些数据,然后使用 Matplotlib
来生成图片。
安装依赖
pip install -r requirements.txt
启动调试
打开要调试编写的文件,比如 body.py
,点击左侧Run & Debug
按钮
等待执行完毕,在文件目录树种会生成对应文件名的png
图片,打开即可查看效果
This is a simple Python data analysis Demo, we have prepared some basic public information data of Olympic athletes, in olympic.xlsx
, the data table header includes the following fields:
event name age birthplace attend2016 attend2012 attend2008 attendtimes gold silver bronze medal xz gender birthday height weight arm leg
We use libraries such as Pandas
and Numpy
to analyze these data, and then use Matplotlib
to generate images.
Install dependencies
pip install -r requirements.txt
Start debugging
Open the file you want to debug, such as body.py
, and click the Run & Debug
button on the left.
Wait for the execution to complete, a png image with the corresponding filename will be generated in the file directory tree, you can open it to check the effect.