# pydemo **Repository Path**: elevenmore/pydemo ## Basic Information - **Project Name**: pydemo - **Description**: python demo - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-06-30 - **Last Updated**: 2024-06-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # demo for python ## 统计数据 - 国家数据:https://data.stats.gov.cn/index.htm - 上海统计:https://tjj.sh.gov.cn/ydsj/index.html ## pip镜像 - 设置镜像:(`C:\Users\admin\pip\pip.ini`) ``` [global] timeout = 60000 index-url = https://pypi.tuna.tsinghua.edu.cn/simple [install] use-mirrors = true mirrors = https://pypi.tuna.tsinghua.edu.cn ``` - 检查配置:`pip config list` 参考:https://www.runoob.com/w3cnote/pip-cn-mirror.html ## 第三方库 - numpy: 数学运算库 - https://numpy.org/doc/stable/user/absolute_beginners.html - pandas:数据分析支持库 - https://pandas.pydata.org/ - https://www.runoob.com/pandas/pandas-tutorial.html - beautifulsoup:解析HTML - https://beautiful-soup-4.readthedocs.io/en/latest/#quick-start - https://beautifulsoup.cn/ - https://pypi.org/project/beautifulsoup4/ - matplotlib:绘图库 - https://matplotlib.org/stable/gallery/index.html - seaborn:绘图库 - https://seaborn.pydata.org/tutorial/function_overview.html - statsmodels:回归分析 - https://www.statsmodels.org/stable/index.html - jieba:中文分词库 - https://pypi.org/project/jieba/ - wordcloud:词云 - https://amueller.github.io/word_cloud/auto_examples/index.html ## 案例 备注:豆瓣电影、薪水回归、抖音评论词源、 股票案例以及80模板来源于三更老师的课程学习! ## 注意事项 ### 把几种数据绘制在同一个图像当中查看走势的问题 如电商公司:销售团队人数、业绩总和业绩的平均值绘制在同一个图像当中! 但单位不一样:个/百万/万。 不能直接绘制,需要处理下数据: 归一化:按比例缩减。最大值映射到1,最小值映射到0。 公式 = (a - min) / (max - min) ## 参考: - 词云制作:https://blog.csdn.net/wodegecsdn/article/details/113845236