欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 健康 > 美食 > 【62 Pandas+Pyecharts | 智联招聘大数据岗位数据分析可视化】

【62 Pandas+Pyecharts | 智联招聘大数据岗位数据分析可视化】

2025/12/14 8:45:15 来源:https://blog.csdn.net/weixin_42152811/article/details/148635912  浏览:    关键词:【62 Pandas+Pyecharts | 智联招聘大数据岗位数据分析可视化】

文章目录

  • 🏳️‍🌈 1. 导入模块
  • 🏳️‍🌈 2. Pandas数据处理
    • 2.1 读取数据
    • 2.2 数据信息
    • 2.3 数据去重
    • 2.4 薪资处理
  • 🏳️‍🌈 3. Pyecharts数据可视化
    • 3.1 各城市平均薪资
    • 3.2 岗位数量前20的城市
    • 3.3 岗位学历占比
    • 3.4 不同学历平均薪资
    • 3.5 岗位工作经验占比
    • 3.6 不同工作经验平均薪资
    • 3.7 不同行业平均薪资
    • 3.8 不同企业类型数量
    • 3.9 公司规模占比
    • 3.10 岗位词云
  • 🏳️‍🌈 4. 可视化项目源码+数据

大家好,我是 👉 【Python当打之年(点击跳转)】

本期我们利用Python分析「智联招聘大数据岗位数据集」,看看:各招聘城市平均薪资分布、招聘岗位数量分布、岗位学历要求、岗位经验要求、不同学历不同工作经验平均薪资分布等等,希望对大家有所帮助,如有疑问或者需要改进的地方可以联系小编。

涉及到的库:

  • Pandas— 数据处理
  • Pyecharts— 数据可视化

🏳️‍🌈 1. 导入模块

import pandas as pd
from pyecharts.charts import *
from pyecharts import options as opts
import warnings
warnings.filterwarnings('ignore')

🏳️‍🌈 2. Pandas数据处理

2.1 读取数据

df = pd.read_excel('datas.xlsx')

在这里插入图片描述

2.2 数据信息

df.info()

在这里插入图片描述

2.3 数据去重

df = df.drop_duplicates()

2.4 薪资处理

def split_salary(salary, method):low_salary_1 = 0.0high_salary_1 = 0.0salary_t = salary.split('·')[0] if '-' in salary_t: low_salary = salary_t.split('-')[0]high_salary = salary_t.split('-')[1] if '万' in salary_t:low_salary_1 = float(low_salary) * 10000high_salary_1 = float(high_salary.replace('万','')) * 10000                     elif '元' in salary_t: low_salary_1 = float(low_salary)high_salary_1 = float(high_salary.replace('元',''))if method == 'low':returnint(low_salary_1)elif method == 'high':returnint(high_salary_1)

在这里插入图片描述

🏳️‍🌈 3. Pyecharts数据可视化

3.1 各城市平均薪资

def get_chart():chart = (Map(i).add('',data_pair=datas,maptype='china-cities',is_map_symbol_show=False,).set_global_opts(visualmap_opts=opts.VisualMapOpts(pos_left = '3%',pos_bottom='20%',range_color=range_color),legend_opts=opts.LegendOpts(is_show=False),title_opts=opts.TitleOpts(title="1-各城市平均薪资",subtitle=subtitle,pos_left='center', pos_top='2%',title_textstyle_opts=opts.TextStyleOpts(color='#fff200',font_size=20)),))

在这里插入图片描述

  • 东部地区平均薪资要明显高于中西部地区,沿海地区平均薪资更高。

3.2 岗位数量前20的城市

def get_chart():chart = (Bar().add_xaxis(x_data).add_yaxis('', y_data).set_global_opts( visualmap_opts=opts.VisualMapOpts(range_color=range_color),title_opts=opts.TitleOpts(title='2-岗位数量前20的城市',pos_top='2%',pos_left = 'center',title_textstyle_opts=opts.TextStyleOpts(color='#fff200',font_size=20)),))

在这里插入图片描述

  • 从招聘岗位上看上海、西安、成都、天津、重庆、武汉、北京、长沙、杭州、郑州等城市较其他城市更多。

3.3 岗位学历占比

在这里插入图片描述

  • 本科学历要求占比最高,占比高达67%,其次是大专类约19%,硕士类约8%。

3.4 不同学历平均薪资

在这里插入图片描述

  • 不同学历薪资方面来看,平均薪资和学历关系比较明显,博士平均薪资27K、硕士平均薪资16K、本科平均薪资13K。

3.5 岗位工作经验占比

def get_chart():chart = (Pie().add('',datas,radius=['40%', '70%'],).set_global_opts(title_opts=opts.TitleOpts(title="5-岗位工作经验占比",pos_top='2%',pos_left = 'center',title_textstyle_opts=opts.TextStyleOpts(color='#fff200',font_size=20)),visualmap_opts=opts.VisualMapOpts(is_show=False,range_color=range_color),))

在这里插入图片描述

  • 3-5年工作经验需求数量最多,占比约30%,其次是1-3年占比约25%,不限工作经验的岗位数量约占24%,和1-3年占比相当,5-10年工作经验的岗位也达到了15%。

3.6 不同工作经验平均薪资

在这里插入图片描述

  • 不同工作经验平均薪资来看,工作经验和平均薪资基本呈正相关的关系,10年工作经验平均薪资30K,5-10年工作经验19K,3-5年工作经验13K。

3.7 不同行业平均薪资

在这里插入图片描述

  • 从招聘行业薪资上看:汽车后市场、专用设备制造、新闻/出版、在线医疗、建材、人力资源服务、基金、船舶/航空/航天/火车制造、装饰装修、橡胶和塑料制品等行业的平均薪资相对较高。

3.8 不同企业类型数量

在这里插入图片描述

3.9 公司规模占比

在这里插入图片描述

3.10 岗位词云

def get_chart():chart = (WordCloud().add('',words,word_size_range=[20,50]).set_global_opts(title_opts=opts.TitleOpts(title='10-岗位词云',pos_top='2%', pos_left="center",title_textstyle_opts=opts.TextStyleOpts(color='#fff200',font_size=20)),visualmap_opts=opts.VisualMapOpts(is_show=False,range_color=range_color)))

在这里插入图片描述

🏳️‍🌈 4. 可视化项目源码+数据

点击跳转:【全部可视化项目源码+数据】


以上就是本期为大家整理的全部内容了,赶快练习起来吧,原创不易,喜欢的朋友可以点赞、收藏也可以分享注明出处)让更多人知道。

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

热搜词