# 数据分析 **Repository Path**: weixiaodai/data_analysis ## Basic Information - **Project Name**: 数据分析 - **Description**: 微信公众号《帅帅的Python》,这个项目以小凡为主人公,讲述她在工作中遇到的数据分析问题,以及解决问题的办法。 - **Primary Language**: Python - **License**: MulanPSL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 4 - **Created**: 2023-01-04 - **Last Updated**: 2023-01-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 项目介绍 **微信公众号《帅帅的Python》,该项目持续更新中...** > **做最有趣的教程,做最实用的工具,每一篇文章都是一个故事;** > > **这里有一群BUG攻城狮,需要技术支持,请点击【需要帮助】,扫描对应二维码,我们将提供最优质的的服务** ![帅帅的Python](./images/sspython.png) ## **博客地址** | gitee | csdn | 简书 | 稀土掘金 | | :-------------------------------------------------: | :-----------------------------------------------------: | :--------------------------------------------: | :-------------------------------------------------: | | [gitee](https://gitee.com/myrensheng/data_analysis) | [CSDN](https://blog.csdn.net/weixin_42060598?type=blog) | [简书](https://www.jianshu.com/u/1fb660a6cc91) | [稀土掘金](https://juejin.cn/user/3576031104209272) | # 项目介绍 **这个项目以小凡为主人公,讲述她在工作中遇到的数据分析问题,以及解决问题的办法** ## **使用说明** - **强烈建议使用 anaconda3 运行该项目** - **项目下载之后,放到 jupyter 运行的目录下,默认位置:C:\Users\admin** - **使用git命令下载,或者点击右上角【克隆/下载】-【下载zip】** ```shell # 克隆项目到本地 git clone https://gitee.com/myrensheng/data_analysis # 更新项目 git pull ``` ## **工具推荐** | 工具 | 地址 | 描述 | 难度等级 | | :-----------: | :----------------------------------------------------------: | :----------------------------------------------------------: | :------: | | **anaconda3** | [下载地址](https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/) | **就这个,很好用,真的,不骗你...** | ⭐︎⭐︎ | | **pandas** | [官网地址](https://pandas.pydata.org/docs/user_guide/index.html) | [附:小凡自学pandas的历程](https://gitee.com/myrensheng/data_analysis/tree/master/Pandas%E8%87%AA%E5%AD%A6%E5%8E%86%E7%A8%8B) | ⭐︎⭐︎⭐︎ | | **numpy** | [官网地址](https://numpy.org/doc/stable/user/index.html) | | ⭐︎⭐︎⭐︎ | | **pyecharts** | [官网地址](https://gallery.pyecharts.org/#/README) | **pip install pyecharts** | ⭐︎⭐︎ | | **paddle** | [官网地址](https://www.paddlepaddle.org.cn/tutorials/projectdetail/1990733) | [附:小凡自学paddle的历程](https://gitee.com/myrensheng/data_analysis/tree/master/Paddle%E8%87%AA%E5%AD%A6%E5%8E%86%E7%A8%8B) | ⭐︎⭐︎⭐︎⭐︎⭐︎ | ## **文章目录** | 地址 | 描述 | 难度等级 | | :----------------------------------------------------------: | :-------------------------------------------------------: | :------: | | [第一章](https://gitee.com/myrensheng/data_analysis/tree/master/%E7%AC%AC%E4%B8%80%E7%AB%A0%E7%94%A8Python%E7%BB%98%E5%88%B6%E6%9F%B1%E7%8A%B6%E5%9B%BE%E5%AF%B9%E6%AF%94%E5%95%86%E5%93%81%E9%94%80%E5%94%AE%E9%A2%9D%E7%9A%84%E5%B7%AE%E5%BC%82) | 用Python绘制柱状图对比商品销售额的差异 | ⭐︎⭐︎ | | [第二章](https://gitee.com/myrensheng/data_analysis/tree/master/%E7%AC%AC%E4%BA%8C%E7%AB%A0%E7%94%A8Python%E5%AF%B9%E4%B8%8D%E5%90%8C%E5%95%86%E5%93%81%E7%9A%84%E9%94%80%E5%94%AE%E6%95%B0%E6%8D%AE%E8%BF%9B%E8%A1%8C%E9%A2%84%E6%B5%8B%E5%88%86%E6%9E%90) | 用Python对不同商品的销售数据进行预测分析 | ⭐︎⭐︎ | | [第三章](https://gitee.com/myrensheng/data_analysis/tree/master/%E7%AC%AC%E4%B8%89%E7%AB%A0%E7%94%A8python%E5%AE%9E%E7%8E%B0%E7%AE%80%E5%8D%95%E5%AE%9E%E7%94%A8%E7%9A%84RFM%E7%94%A8%E6%88%B7%E5%88%86%E5%B1%82%E6%A8%A1%E5%9E%8B) | 用python实现简单、实用的用户分层模型(RFM模型) | ⭐︎⭐︎⭐︎ | | [第四章](https://gitee.com/myrensheng/data_analysis/tree/master/%E7%AC%AC%E5%9B%9B%E7%AB%A0%E7%94%A8Python%E5%AF%B9%E7%94%A8%E6%88%B7%E7%9A%84%E8%AF%84%E8%AE%BA%E6%95%B0%E6%8D%AE%E8%BF%9B%E8%A1%8C%E6%83%85%E6%84%9F%E5%80%BE%E5%90%91%E5%88%86%E6%9E%90) | 用Python对用户的评论数据进行情感倾向分析 | ⭐︎⭐︎⭐︎ | | [第五章](https://gitee.com/myrensheng/data_analysis/tree/master/%E7%AC%AC%E4%BA%94%E7%AB%A0%E7%94%A8Python%E5%88%86%E6%9E%90%E5%95%86%E5%93%81%E9%80%80%E5%8D%95%E6%95%B0%E6%8D%AE%E5%B9%B6%E6%89%BE%E5%87%BA%E5%BC%82%E5%B8%B8%E5%95%86%E5%93%81) | 用Python分析商品退单数据并找出异常商品 | ⭐︎⭐︎ | | [第六章](https://gitee.com/myrensheng/data_analysis/tree/master/%E7%AC%AC%E5%85%AD%E7%AB%A0%E7%94%A8Python%E5%AE%9E%E7%8E%B0%E8%87%AA%E5%8A%A8%E5%8F%91%E9%80%81%E9%82%AE%E4%BB%B6%E4%BB%A5%E5%8F%8A%E9%92%89%E9%92%89%E6%B6%88%E6%81%AF) | 用Python实现自动发送邮件以及钉钉消息 | ⭐︎⭐︎ | | [第七章](https://gitee.com/myrensheng/data_analysis/tree/master/%E7%AC%AC%E4%B8%83%E7%AB%A0%E7%94%A8Python%E5%AE%9E%E7%8E%B0%E5%AF%B9Excel%E6%96%87%E4%BB%B6%E4%B8%AD%E7%9A%84%E6%95%B0%E6%8D%AE%E8%BF%9B%E8%A1%8Cmd5%E5%8A%A0%E5%AF%86) | 用Python实现对Excel文件中的数据进行md5加密 | ⭐︎⭐︎ | | [第八章](https://gitee.com/myrensheng/data_analysis/tree/master/%E7%AC%AC%E5%85%AB%E7%AB%A0%E7%94%A8matplotlib%E3%80%81seaborn%E3%80%81pyecharts%E7%BB%98%E5%88%B6%E6%95%A3%E7%82%B9%E5%9B%BE) | 用matplotlib、seaborn、pyecharts绘制散点图 | ⭐︎⭐︎ | | [第九章](https://gitee.com/myrensheng/data_analysis/tree/master/%E7%AC%AC%E4%B9%9D%E7%AB%A0%E7%94%A8Python%E5%A4%84%E7%90%86%E7%9C%81%E4%BB%BD%E5%9F%8E%E5%B8%82%E7%BC%96%E7%A0%81%E6%95%B0%E6%8D%AE) | 用Python处理省份城市编码数据 | ⭐︎⭐︎ | | [第十章](https://gitee.com/myrensheng/data_analysis/tree/master/%E7%AC%AC%E5%8D%81%E7%AB%A0%E7%94%A8Python%E8%8E%B7%E5%8F%96sqlite%E3%80%81MySQL%E3%80%81Excel%E3%80%81csv%E3%80%81json%E4%B8%AD%E7%9A%84%E6%95%B0%E6%8D%AE) | 第十章用Python获取sqlite、MySQL、Excel、csv、json中的数据 | ⭐︎⭐︎ | | 第十一章 | **还差99.99%就可以更完啦......** | | # 案例数据 **数据保存位置:[数据源](https://gitee.com/myrensheng/data_analysis/tree/master/%E6%95%B0%E6%8D%AE%E5%8A%A0%E5%B7%A5%E5%8E%82)**,**数据持续更新中...** - **data.db 数据库:** | 表名 | 解释 | | :-----------------: | :------------------------: | | salesSummary | 商品在不同店铺的销售数据 | | predictSalesSummary | 每个月不同商品的销售额数据 | | users | 用户信息数据 | | comment | 用户对耳机产品的评论数据 | | bussiness | 用户的交易记录数据 | | shopRefuse | 商品退单数据 | | adcode_lng_lat | 省市区编码与经纬度映射表 | - **seaborn_data:seaborn数据可视化常用数据** # 常见问题 ## python安装第三方库速度慢? **用以下代码试试切换下载源:** ```python pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple 阿里云 http://mirrors.aliyun.com/pypi/simple/ 中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/ 豆瓣(douban) http://pypi.douban.com/simple/ 清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/ 中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/ ``` ## XLRDError: Excel xlsx file; not supported ``` pip install xlrd==1.2.0 ``` ## pyecharts未安装? 打开**anaconda powershell prompt** 或者 **anaconda prompt**,运行下面命令安装 pyecharts 即可 ```shell pip install pyecharts ``` # 感谢馈赠❤ ❤**开发和维护项目花费了团队巨大的心力,如果项目可以帮到你,感谢您的馈赠**❤ | 微信二维码 | 支付宝二维码 | | :--------------------------------: | :------------------------------------: | | ![微信二维码](./images/weixin.png) | ![支付宝二维码](./images/zhifubao.jpg) |