【数据可视化】国防科技大学录取分数线可视化分析
<section id="nice" data-tool="mdnice编辑器" data-website="https://www.mdnice.com" style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; padding-top: 0px; padding-bottom: 0px; padding-left: 10px; padding-right: 10px; background-attachment: scroll; background-clip: border-box; background-color: rgba(0, 0, 0, 0); background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: no-repeat; background-size: auto; width: auto; font-family: Optima, 'Microsoft YaHei', PingFangSC-regular, serif; font-size: 16px; color: rgb(0, 0, 0); line-height: 1.5em; word-spacing: 0em; letter-spacing: 0em; word-break: break-word; overflow-wrap: break-word; text-align: left;"><p data-tool="mdnice编辑器" style="color: rgb(0, 0, 0); font-size: 16px; line-height: 1.8em; letter-spacing: 0em; text-align: left; text-indent: 0em; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; padding-top: 8px; padding-bottom: 8px; padding-left: 0px; padding-right: 0px;">? 博主简介:</p><p data-tool="mdnice编辑器" style="color: rgb(0, 0, 0); font-size: 16px; line-height: 1.8em; letter-spacing: 0em; text-align: left; text-indent: 0em; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; padding-top: 8px; padding-bottom: 8px; padding-left: 0px; padding-right: 0px;">曾任某智慧城市类企业算法总监,CSDN / 稀土掘金 等平台人工智能领域优质创作者。</p>
<p data-tool="mdnice编辑器" style="color: rgb(0, 0, 0); font-size: 16px; line-height: 1.8em; letter-spacing: 0em; text-align: left; text-indent: 0em; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; padding-top: 8px; padding-bottom: 8px; padding-left: 0px; padding-right: 0px;">目前在美国市场的物流公司从事高级算法工程师一职,深耕人工智能领域,精通python数据挖掘、可视化、机器学习等,发表过AI相关的专利并多次在AI类比赛中获奖。</p>
<h4 data-tool="mdnice编辑器" style="margin-top: 30px; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; padding-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; display: block;"><span class="prefix" style="display: none;"></span><span class="content" style="font-size: 18px; color: rgb(0, 0, 0); line-height: 1.5em; letter-spacing: 0em; text-align: left; font-weight: bold; display: block;">引言</span><span class="suffix" style="display: none;"></span></h4>
<p data-tool="mdnice编辑器" style="color: rgb(0, 0, 0); font-size: 16px; line-height: 1.8em; letter-spacing: 0em; text-align: left; text-indent: 0em; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; padding-top: 8px; padding-bottom: 8px; padding-left: 0px; padding-right: 0px;">在当今信息爆炸的时代,数据可视化成为了一种强有力的工具,能够帮助我们直观地理解和分析复杂的数据集。本文将利用Python的Pyecharts库,对国防科技大学2016年的录取分数数据进行可视化分析。通过图表展示,我们可以清晰地看到不同省份的录取分数分布情况,为考生和家长提供有价值的参考信息。</p>
<h4 data-tool="mdnice编辑器" style="margin-top: 30px; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; padding-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; display: block;"><span class="prefix" style="display: none;"></span><span class="content" style="font-size: 18px; color: rgb(0, 0, 0); line-height: 1.5em; letter-spacing: 0em; text-align: left; font-weight: bold; display: block;">数据准备</span><span class="suffix" style="display: none;"></span></h4>
<p data-tool="mdnice编辑器" style="color: rgb(0, 0, 0); font-size: 16px; line-height: 1.8em; letter-spacing: 0em; text-align: left; text-indent: 0em; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; padding-top: 8px; padding-bottom: 8px; padding-left: 0px; padding-right: 0px;">首先,我们需要准备好国防科技大学2016年的录取分数数据。数据包含以下字段:省份、理科一本线、工程技术类最高分、工程技术类最低分、工程技术类平均分、学历教育合训类最高分、学历教育合训类最低分、学历教育合训类平均分。以下是部分数据示例:</p>
<section class="table-container" data-tool="mdnice编辑器" style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; padding-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; overflow-x: auto;"><table style="display: table; text-align: left;">
<thead>
<tr>
<th style="color: rgb(248, 248, 248); font-size: 16px; line-height: 1.5em; letter-spacing: 0em; text-align: left; font-weight: bold; background-attachment: scroll; background-clip: border-box; background-color: rgb(235, 114, 80); background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: no-repeat; background-size: auto; width: auto; height: auto; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px;">省份</th>
<th style="color: rgb(248, 248, 248); font-size: 16px; line-height: 1.5em; letter-spacing: 0em; text-align: left; font-weight: bold; background-attachment: scroll; background-clip: border-box; background-color: rgb(235, 114, 80); background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: no-repeat; background-size: auto; width: auto; height: auto; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px;">理科一本线</th>
<th style="color: rgb(248, 248, 248); font-size: 16px; line-height: 1.5em; letter-spacing: 0em; text-align: left; font-weight: bold; background-attachment: scroll; background-clip: border-box; background-color: rgb(235, 114, 80); background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: no-repeat; background-size: auto; width: auto; height: auto; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px;">工程技术类最高分</th>
<th style="color: rgb(248, 248, 248); font-size: 16px; line-height: 1.5em; letter-spacing: 0em; text-align: left; font-weight: bold; background-attachment: scroll; background-clip: border-box; background-color: rgb(235, 114, 80); background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: no-repeat; background-size: auto; width: auto; height: auto; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px;">工程技术类最低分</th>
<th style="color: rgb(248, 248, 248); font-size: 16px; line-height: 1.5em; letter-spacing: 0em; text-align: left; font-weight: bold; background-attachment: scroll; background-clip: border-box; background-color: rgb(235, 114, 80); background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: no-repeat; background-size: auto; width: auto; height: auto; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px;">工程技术类平均分</th>
<th style="color: rgb(248, 248, 248); font-size: 16px; line-height: 1.5em; letter-spacing: 0em; text-align: left; font-weight: bold; background-attachment: scroll; background-clip: border-box; background-color: rgb(235, 114, 80); background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: no-repeat; background-size: auto; width: auto; height: auto; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px;">学历教育合训类最高分</th>
<th style="color: rgb(248, 248, 248); font-size: 16px; line-height: 1.5em; letter-spacing: 0em; text-align: left; font-weight: bold; background-attachment: scroll; background-clip: border-box; background-color: rgb(235, 114, 80); background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: no-repeat; background-size: auto; width: auto; height: auto; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px;">学历教育合训类最低分</th>
<th style="color: rgb(248, 248, 248); font-size: 16px; line-height: 1.5em; letter-spacing: 0em; text-align: left; font-weight: bold; background-attachment: scroll; background-clip: border-box; background-color: rgb(235, 114, 80); background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: no-repeat; background-size: auto; width: auto; height: auto; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px;">学历教育合训类平均分</th>
</tr>
</thead>
<tbody style="font-size: 16px; line-height: 1.5em; letter-spacing: 0em; text-align: left; font-weight: normal; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: initial; border-right-style: initial; border-bottom-style: initial; border-left-style: initial; border-top-color: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: initial; border-image-source: initial; border-image-slice: initial; border-image-width: initial; border-image-outset: initial; border-image-repeat: initial;">
<tr style="color: rgb(0, 0, 0); background-attachment: scroll; background-clip: border-box; background-color: rgb(255, 255, 255); background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: no-repeat; background-size: auto; width: auto; height: auto;">
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">北京</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">548</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">662</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">607</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">629</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">613</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">570</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">592</td>
</tr>
<tr style="color: rgb(0, 0, 0); background-attachment: scroll; background-clip: border-box; background-color: rgb(248, 222, 203); background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: no-repeat; background-size: auto; width: auto; height: auto;">
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">天津</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">512</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">659</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">634</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">649</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">600</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">537</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">567</td>
</tr>
<tr style="color: rgb(0, 0, 0); background-attachment: scroll; background-clip: border-box; background-color: rgb(255, 255, 255); background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: no-repeat; background-size: auto; width: auto; height: auto;">
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">河北</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">525</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">682</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">654</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">667</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">669</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">640</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">649</td>
</tr>
<tr style="color: rgb(0, 0, 0); background-attachment: scroll; background-clip: border-box; background-color: rgb(248, 222, 203); background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: no-repeat; background-size: auto; width: auto; height: auto;">
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">山西</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">519</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">639</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">617</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">625</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">638</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">579</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">599</td>
</tr>
<tr style="color: rgb(0, 0, 0); background-attachment: scroll; background-clip: border-box; background-color: rgb(255, 255, 255); background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: no-repeat; background-size: auto; width: auto; height: auto;">
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">内蒙古</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">484</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">641</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">615</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">627</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">623</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">558</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">597</td>
</tr>
<tr style="color: rgb(0, 0, 0); background-attachment: scroll; background-clip: border-box; background-color: rgb(248, 222, 203); background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: no-repeat; background-size: auto; width: auto; height: auto;">
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">辽宁</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">498</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">660</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">624</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">637</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">641</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">607</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">621</td>
</tr>
<tr style="color: rgb(0, 0, 0); background-attachment: scroll; background-clip: border-box; background-color: rgb(255, 255, 255); background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: no-repeat; background-size: auto; width: auto; height: auto;">
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">吉林</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">530</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">658</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">639</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">649</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">634</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">599</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">615</td>
</tr>
<tr style="color: rgb(0, 0, 0); background-attachment: scroll; background-clip: border-box; background-color: rgb(248, 222, 203); background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: no-repeat; background-size: auto; width: auto; height: auto;">
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">黑龙江</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">486</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">667</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">623</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">641</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">628</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">580</td>
<td style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; min-width: 85px; border-top-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(245, 203, 174); border-bottom-color: rgb(245, 203, 174); border-left-color: rgb(245, 203, 174); border-right-color: rgb(245, 203, 174); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">600</td>
</tr>
</tbody>
</table>
</section><p data-tool="mdnice编辑器" style="color: rgb(0, 0, 0); font-size: 16px; line-height: 1.8em; letter-spacing: 0em; text-align: left; text-indent: 0em; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; padding-top: 8px; padding-bottom: 8px; padding-left: 0px; padding-right: 0px;">详细数据参考国防科技大学招生官网https://www.nudt.edu.cn/bkzs/xxgk/lqfs/6a4ee15ca795454083ed233f502b262b.htm或者联系我。</p>
<h4 data-tool="mdnice编辑器" style="margin-top: 30px; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; padding-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; display: block;"><span class="prefix" style="display: none;"></span><span class="content" style="font-size: 18px; color: rgb(0, 0, 0); line-height: 1.5em; letter-spacing: 0em; text-align: left; font-weight: bold; display: block;">Pyecharts简介</span><span class="suffix" style="display: none;"></span></h4>
<p data-tool="mdnice编辑器" style="color: rgb(0, 0, 0); font-size: 16px; line-height: 1.8em; letter-spacing: 0em; text-align: left; text-indent: 0em; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; padding-top: 8px; padding-bottom: 8px; padding-left: 0px; padding-right: 0px;">Pyecharts是一个用于生成Echarts图表的Python库。Echarts是一个使用JavaScript实现的开源可视化库,能够生成丰富的交互式图表。Pyecharts通过将Echarts的图表转化为Python代码,使得在Python环境下也能方便地生成高质量的图表。</p>
<h4 data-tool="mdnice编辑器" style="margin-top: 30px; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; padding-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; display: block;"><span class="prefix" style="display: none;"></span><span class="content" style="font-size: 18px; color: rgb(0, 0, 0); line-height: 1.5em; letter-spacing: 0em; text-align: left; font-weight: bold; display: block;">数据可视化分析</span><span class="suffix" style="display: none;"></span></h4>
<p data-tool="mdnice编辑器" style="color: rgb(0, 0, 0); font-size: 16px; line-height: 1.8em; letter-spacing: 0em; text-align: left; text-indent: 0em; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; padding-top: 8px; padding-bottom: 8px; padding-left: 0px; padding-right: 0px;">接下来,我们将使用Pyecharts库对国防科技大学2016年的录取分数数据进行可视化分析。
首先导入数据并对数据中的异常值进行清洗,具体代码如下:</p>
<pre class="custom" data-tool="mdnice编辑器" style="border-radius: 5px; box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px; text-align: left; margin-top: 10px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; padding-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px;"><span style="display: block; background: url(https://files.mdnice.com/user/3441/876cad08-0422-409d-bb5a-08afec5da8ee.svg); height: 30px; width: 100%; background-size: 40px; background-repeat: no-repeat; background-color: #282c34; margin-bottom: -7px; border-radius: 5px; background-position: 10px 10px;"></span><code class="hljs" style="overflow-x: auto; padding: 16px; color: #abb2bf; padding-top: 15px; background: #282c34; border-radius: 5px; display: -webkit-box; font-family: Consolas, Monaco, Menlo, monospace; font-size: 12px;"><span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">import</span> numpy <span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">as</span> np<br><span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">import</span> pandas <span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">as</span> pd<br><br>data = pd.read_excel(<span class="hljs-string" style="color: #98c379; line-height: 26px;">"data.xlsx"</span>)<br><br><span class="hljs-function" style="line-height: 26px;"><span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">def</span> <span class="hljs-title" style="color: #61aeee; line-height: 26px;">replace_mean</span><span class="hljs-params" style="line-height: 26px;">(df,col=<span class="hljs-string" style="color: #98c379; line-height: 26px;">'A'</span>)</span>:</span><br> <span class="hljs-string" style="color: #98c379; line-height: 26px;">"col列中的'/'用这一列的均值来替换"</span><br> df = df.replace(<span class="hljs-string" style="color: #98c379; line-height: 26px;">'/'</span>, np.nan)<br> mean_A = df.mean(skipna=<span class="hljs-literal" style="color: #56b6c2; line-height: 26px;">True</span>)<br> df.fillna(mean_A, inplace=<span class="hljs-literal" style="color: #56b6c2; line-height: 26px;">True</span>)<br><br><span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">for</span> col <span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">in</span> [<span class="hljs-string" style="color: #98c379; line-height: 26px;">'学历教育合训类最高分'</span>,<span class="hljs-string" style="color: #98c379; line-height: 26px;">'学历教育合训类最低分'</span>,<span class="hljs-string" style="color: #98c379; line-height: 26px;">'学历教育合训类平均分'</span>]:<br> replace_mean(data,col)<br></code></pre>
<h5 data-tool="mdnice编辑器" style="margin-top: 30px; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; padding-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; display: block;"><span class="prefix" style="display: none;"></span><span class="content" style="font-size: 16px; color: rgb(0, 0, 0); line-height: 1.5em; letter-spacing: 0em; text-align: left; font-weight: bold; display: block;">1. 省份理科一本线分布图</span><span class="suffix" style="display: none;"></span></h5>
<p data-tool="mdnice编辑器" style="color: rgb(0, 0, 0); font-size: 16px; line-height: 1.8em; letter-spacing: 0em; text-align: left; text-indent: 0em; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; padding-top: 8px; padding-bottom: 8px; padding-left: 0px; padding-right: 0px;">首先,我们绘制一个柱状图,展示不同省份的理科一本线分布情况。</p>
<pre class="custom" data-tool="mdnice编辑器" style="border-radius: 5px; box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px; text-align: left; margin-top: 10px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; padding-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px;"><span style="display: block; background: url(https://files.mdnice.com/user/3441/876cad08-0422-409d-bb5a-08afec5da8ee.svg); height: 30px; width: 100%; background-size: 40px; background-repeat: no-repeat; background-color: #282c34; margin-bottom: -7px; border-radius: 5px; background-position: 10px 10px;"></span><code class="hljs" style="overflow-x: auto; padding: 16px; color: #abb2bf; padding-top: 15px; background: #282c34; border-radius: 5px; display: -webkit-box; font-family: Consolas, Monaco, Menlo, monospace; font-size: 12px;"><span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">from</span> pyecharts <span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">import</span> options <span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">as</span> opts<br><span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">from</span> pyecharts.charts <span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">import</span> Bar<br><br><br>c = (<br> Bar()<br> .add_xaxis(data[<span class="hljs-string" style="color: #98c379; line-height: 26px;">'省 份'</span>].tolist())<br> .add_yaxis(<span class="hljs-string" style="color: #98c379; line-height: 26px;">"理科一本线"</span>, data[<span class="hljs-string" style="color: #98c379; line-height: 26px;">'理科一本线'</span>].tolist())<br> .set_global_opts(title_opts=opts.TitleOpts(title=<span class="hljs-string" style="color: #98c379; line-height: 26px;">"国防科技大学2016年理科一本线录取分数"</span>, subtitle=<span class="hljs-string" style="color: #98c379; line-height: 26px;">"各省分数情况分布"</span>))<br> .render(<span class="hljs-string" style="color: #98c379; line-height: 26px;">"bar_base.html"</span>)<br>)<br></code></pre>
<figure data-tool="mdnice编辑器" style="margin-top: 10px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; padding-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; display: flex; flex-direction: column; justify-content: center; align-items: center;"><img src="https://files.mdnice.com/user/84866/9534b90a-8b6c-4ffa-8ba2-bddbecc3f43f.png" alt style="display: block; margin-top: 0px; margin-right: auto; margin-bottom: 0px; margin-left: auto; max-width: 100%; border-top-style: none; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-width: 3px; border-bottom-width: 3px; border-left-width: 3px; border-right-width: 3px; border-top-color: rgba(0, 0, 0, 0.4); border-bottom-color: rgba(0, 0, 0, 0.4); border-left-color: rgba(0, 0, 0, 0.4); border-right-color: rgba(0, 0, 0, 0.4); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; object-fit: fill; box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px;"></figure>
!(data/attachment/forum/202412/31/143929brzh79irv30ii20h.png)
<p data-tool="mdnice编辑器" style="color: rgb(0, 0, 0); font-size: 16px; line-height: 1.8em; letter-spacing: 0em; text-align: left; text-indent: 0em; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; padding-top: 8px; padding-bottom: 8px; padding-left: 0px; padding-right: 0px;">生成的柱状图清晰地展示了不同省份的理科一本线分布情况。可以看到,海南的理科一本线最高,达到了602分,而江苏的理科一本线最低,为353分,但各个地方的总分不同,需要做具体分析,这里就是展示一组数据而已,具体结果不具有参考性。</p>
<h5 data-tool="mdnice编辑器" style="margin-top: 30px; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; padding-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; display: block;"><span class="prefix" style="display: none;"></span><span class="content" style="font-size: 16px; color: rgb(0, 0, 0); line-height: 1.5em; letter-spacing: 0em; text-align: left; font-weight: bold; display: block;">2. 工程技术类录取分数分布图</span><span class="suffix" style="display: none;"></span></h5>
<p data-tool="mdnice编辑器" style="color: rgb(0, 0, 0); font-size: 16px; line-height: 1.8em; letter-spacing: 0em; text-align: left; text-indent: 0em; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; padding-top: 8px; padding-bottom: 8px; padding-left: 0px; padding-right: 0px;">接下来,我们绘制三个折线图,分别展示工程技术类的最高分、最低分和平均分的分布情况。</p>
<pre class="custom" data-tool="mdnice编辑器" style="border-radius: 5px; box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px; text-align: left; margin-top: 10px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; padding-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px;"><span style="display: block; background: url(https://files.mdnice.com/user/3441/876cad08-0422-409d-bb5a-08afec5da8ee.svg); height: 30px; width: 100%; background-size: 40px; background-repeat: no-repeat; background-color: #282c34; margin-bottom: -7px; border-radius: 5px; background-position: 10px 10px;"></span><code class="hljs" style="overflow-x: auto; padding: 16px; color: #abb2bf; padding-top: 15px; background: #282c34; border-radius: 5px; display: -webkit-box; font-family: Consolas, Monaco, Menlo, monospace; font-size: 12px;"><span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">import</span> pyecharts.options <span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">as</span> opts<br><span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">from</span> pyecharts.charts <span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">import</span> Line<br><br><br>x_data = data[<span class="hljs-string" style="color: #98c379; line-height: 26px;">'省 份'</span>].tolist()<br><br>(<br> Line()<br> .add_xaxis(xaxis_data=x_data)<br> .add_yaxis(<br> series_name=<span class="hljs-string" style="color: #98c379; line-height: 26px;">"'理科一本线'"</span>,<br> stack=<span class="hljs-string" style="color: #98c379; line-height: 26px;">"总量"</span>,<br> y_axis=data[<span class="hljs-string" style="color: #98c379; line-height: 26px;">'理科一本线'</span>].tolist(),<br> label_opts=opts.LabelOpts(is_show=<span class="hljs-literal" style="color: #56b6c2; line-height: 26px;">False</span>),<br> )<br> .add_yaxis(<br> series_name=<span class="hljs-string" style="color: #98c379; line-height: 26px;">"工程技术类最高分"</span>,<br> stack=<span class="hljs-string" style="color: #98c379; line-height: 26px;">"总量"</span>,<br> y_axis=data[<span class="hljs-string" style="color: #98c379; line-height: 26px;">'工程技术类最高分'</span>].tolist(),<br> label_opts=opts.LabelOpts(is_show=<span class="hljs-literal" style="color: #56b6c2; line-height: 26px;">False</span>),<br> )<br> .add_yaxis(<br> series_name=<span class="hljs-string" style="color: #98c379; line-height: 26px;">"工程技术类最低分"</span>,<br> stack=<span class="hljs-string" style="color: #98c379; line-height: 26px;">"总量"</span>,<br> y_axis=data[<span class="hljs-string" style="color: #98c379; line-height: 26px;">'工程技术类最低分'</span>].tolist(),<br> label_opts=opts.LabelOpts(is_show=<span class="hljs-literal" style="color: #56b6c2; line-height: 26px;">False</span>),<br> )<br> .add_yaxis(<br> series_name=<span class="hljs-string" style="color: #98c379; line-height: 26px;">"工程技术类平均分"</span>,<br> stack=<span class="hljs-string" style="color: #98c379; line-height: 26px;">"总量"</span>,<br> y_axis=data[<span class="hljs-string" style="color: #98c379; line-height: 26px;">'工程技术类平均分'</span>].tolist(),<br> label_opts=opts.LabelOpts(is_show=<span class="hljs-literal" style="color: #56b6c2; line-height: 26px;">False</span>),<br> )<br> .set_global_opts(<br> title_opts=opts.TitleOpts(title=<span class="hljs-string" style="color: #98c379; line-height: 26px;">"工程技术类招聘分数"</span>),<br> tooltip_opts=opts.TooltipOpts(trigger=<span class="hljs-string" style="color: #98c379; line-height: 26px;">"axis"</span>),<br> yaxis_opts=opts.AxisOpts(<br> type_=<span class="hljs-string" style="color: #98c379; line-height: 26px;">"value"</span>,<br> axistick_opts=opts.AxisTickOpts(is_show=<span class="hljs-literal" style="color: #56b6c2; line-height: 26px;">True</span>),<br> splitline_opts=opts.SplitLineOpts(is_show=<span class="hljs-literal" style="color: #56b6c2; line-height: 26px;">True</span>),<br> ),<br> xaxis_opts=opts.AxisOpts(type_=<span class="hljs-string" style="color: #98c379; line-height: 26px;">"category"</span>, boundary_gap=<span class="hljs-literal" style="color: #56b6c2; line-height: 26px;">False</span>),<br> )<br> .render(<span class="hljs-string" style="color: #98c379; line-height: 26px;">"stacked_line_chart.html"</span>)<br>)<br><br></code></pre>
<figure data-tool="mdnice编辑器" style="margin-top: 10px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; padding-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; display: flex; flex-direction: column; justify-content: center; align-items: center;"><img src="https://files.mdnice.com/user/84866/e2cb0811-ae92-4446-ac52-594de40241ad.png" alt style="display: block; margin-top: 0px; margin-right: auto; margin-bottom: 0px; margin-left: auto; max-width: 100%; border-top-style: none; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-width: 3px; border-bottom-width: 3px; border-left-width: 3px; border-right-width: 3px; border-top-color: rgba(0, 0, 0, 0.4); border-bottom-color: rgba(0, 0, 0, 0.4); border-left-color: rgba(0, 0, 0, 0.4); border-right-color: rgba(0, 0, 0, 0.4); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; object-fit: fill; box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px;"></figure>
!(data/attachment/forum/202412/31/144012pjq6j7o72scgccvc.png)
<p data-tool="mdnice编辑器" style="color: rgb(0, 0, 0); font-size: 16px; line-height: 1.8em; letter-spacing: 0em; text-align: left; text-indent: 0em; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; padding-top: 8px; padding-bottom: 8px; padding-left: 0px; padding-right: 0px;">生成的折线图展示了工程技术类在不同省份的最高分、最低分和平均分的分布情况。可以看到,工程技术类的最高分和平均分在海南最高,分别为829分和750分;而最低分在江苏最高,为404分。</p>
<h5 data-tool="mdnice编辑器" style="margin-top: 30px; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; padding-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; display: block;"><span class="prefix" style="display: none;"></span><span class="content" style="font-size: 16px; color: rgb(0, 0, 0); line-height: 1.5em; letter-spacing: 0em; text-align: left; font-weight: bold; display: block;">3. 学历教育合训类录取分数分布图</span><span class="suffix" style="display: none;"></span></h5>
<p data-tool="mdnice编辑器" style="color: rgb(0, 0, 0); font-size: 16px; line-height: 1.8em; letter-spacing: 0em; text-align: left; text-indent: 0em; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; padding-top: 8px; padding-bottom: 8px; padding-left: 0px; padding-right: 0px;">类似地,我们绘制三个折线图,展示学历教育合训类的最高分、最低分和平均分的分布情况。</p>
<pre class="custom" data-tool="mdnice编辑器" style="border-radius: 5px; box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px; text-align: left; margin-top: 10px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; padding-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px;"><span style="display: block; background: url(https://files.mdnice.com/user/3441/876cad08-0422-409d-bb5a-08afec5da8ee.svg); height: 30px; width: 100%; background-size: 40px; background-repeat: no-repeat; background-color: #282c34; margin-bottom: -7px; border-radius: 5px; background-position: 10px 10px;"></span><code class="hljs" style="overflow-x: auto; padding: 16px; color: #abb2bf; padding-top: 15px; background: #282c34; border-radius: 5px; display: -webkit-box; font-family: Consolas, Monaco, Menlo, monospace; font-size: 12px;"><span class="hljs-comment" style="color: #5c6370; font-style: italic; line-height: 26px;"># 数据准备</span><br>scores_edu_max = [<span class="hljs-number" style="color: #d19a66; line-height: 26px;">613</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">600</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">669</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">638</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">623</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">641</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">634</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">628</span>]<br>scores_edu_min = [<span class="hljs-number" style="color: #d19a66; line-height: 26px;">570</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">537</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">640</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">579</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">558</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">607</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">599</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">580</span>]<br>scores_edu_avg = [<span class="hljs-number" style="color: #d19a66; line-height: 26px;">592</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">567</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">649</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">599</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">597</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">621</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">615</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">600</span>]<br><br><span class="hljs-comment" style="color: #5c6370; font-style: italic; line-height: 26px;"># 创建折线图</span><br>line = Line()<br>line.add_xaxis(provinces)<br>line.add_yaxis(<span class="hljs-string" style="color: #98c379; line-height: 26px;">"学历教育合训类最高分"</span>, scores_edu_max)<br>line.add_yaxis(<span class="hljs-string" style="color: #98c379; line-height: 26px;">"学历教育合训类最低分"</span>, scores_edu_min)<br>line.add_yaxis(<span class="hljs-string" style="color: #98c379; line-height: 26px;">"学历教育合训类平均分"</span>, scores_edu_avg)<br><br><span class="hljs-comment" style="color: #5c6370; font-style: italic; line-height: 26px;"># 设置全局配置项</span><br>line.set_global_opts(<br> title_opts=opts.TitleOpts(title=<span class="hljs-string" style="color: #98c379; line-height: 26px;">"学历教育合训类录取分数分布图"</span>),<br> yaxis_opts=opts.AxisOpts(name=<span class="hljs-string" style="color: #98c379; line-height: 26px;">"分数"</span>),<br> xaxis_opts=opts.AxisOpts(name=<span class="hljs-string" style="color: #98c379; line-height: 26px;">"省份"</span>),<br> legend_opts=opts.LegendOpts(pos_left=<span class="hljs-string" style="color: #98c379; line-height: 26px;">"left"</span>)<br>)<br><br><span class="hljs-comment" style="color: #5c6370; font-style: italic; line-height: 26px;"># 渲染图表</span><br>line.render(<span class="hljs-string" style="color: #98c379; line-height: 26px;">"edu_scores_distribution_chart.html"</span>)<br></code></pre>
<figure data-tool="mdnice编辑器" style="margin-top: 10px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; padding-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; display: flex; flex-direction: column; justify-content: center; align-items: center;"><img src="https://files.mdnice.com/user/84866/f15bb105-c582-49b3-b1ed-e8bb5ef43546.png" alt style="display: block; margin-top: 0px; margin-right: auto; margin-bottom: 0px; margin-left: auto; max-width: 100%; border-top-style: none; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-width: 3px; border-bottom-width: 3px; border-left-width: 3px; border-right-width: 3px; border-top-color: rgba(0, 0, 0, 0.4); border-bottom-color: rgba(0, 0, 0, 0.4); border-left-color: rgba(0, 0, 0, 0.4); border-right-color: rgba(0, 0, 0, 0.4); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; object-fit: fill; box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px;"></figure>
!(data/attachment/forum/202412/31/145831j08l1bz6y8y31rx1.png)
<p data-tool="mdnice编辑器" style="color: rgb(0, 0, 0); font-size: 16px; line-height: 1.8em; letter-spacing: 0em; text-align: left; text-indent: 0em; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; padding-top: 8px; padding-bottom: 8px; padding-left: 0px; padding-right: 0px;">生成的折线图展示了学历教育合训类在不同省份的最高分、最低分和平均分的分布情况。可以看到,学历教育合训类的最高分在海南最高;最低分在江苏,和上面的结果一致。</p>
<h5 data-tool="mdnice编辑器" style="margin-top: 30px; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; padding-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; display: block;"><span class="prefix" style="display: none;"></span><span class="content" style="font-size: 16px; color: rgb(0, 0, 0); line-height: 1.5em; letter-spacing: 0em; text-align: left; font-weight: bold; display: block;">4. 分数结合地图的展示</span><span class="suffix" style="display: none;"></span></h5>
<h6 data-tool="mdnice编辑器" style="margin-top: 30px; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; padding-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; display: block;"><span class="prefix" style="display: none;"></span><span class="content" style="font-size: 14px; color: rgb(0, 0, 0); line-height: 1.5em; letter-spacing: 0em; text-align: left; font-weight: bold; display: block;">4.1 地图热力图</span><span class="suffix" style="display: none;"></span></h6>
<p data-tool="mdnice编辑器" style="color: rgb(0, 0, 0); font-size: 16px; line-height: 1.8em; letter-spacing: 0em; text-align: left; text-indent: 0em; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; padding-top: 8px; padding-bottom: 8px; padding-left: 0px; padding-right: 0px;">首先对省份数据进行清洗</p>
<pre class="custom" data-tool="mdnice编辑器" style="border-radius: 5px; box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px; text-align: left; margin-top: 10px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; padding-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px;"><span style="display: block; background: url(https://files.mdnice.com/user/3441/876cad08-0422-409d-bb5a-08afec5da8ee.svg); height: 30px; width: 100%; background-size: 40px; background-repeat: no-repeat; background-color: #282c34; margin-bottom: -7px; border-radius: 5px; background-position: 10px 10px;"></span><code class="hljs" style="overflow-x: auto; padding: 16px; color: #abb2bf; padding-top: 15px; background: #282c34; border-radius: 5px; display: -webkit-box; font-family: Consolas, Monaco, Menlo, monospace; font-size: 12px;">province_mapping = {<br> <span class="hljs-string" style="color: #98c379; line-height: 26px;">'北京'</span>:<span class="hljs-string" style="color: #98c379; line-height: 26px;">"北京市"</span>,<span class="hljs-string" style="color: #98c379; line-height: 26px;">'天津'</span>:<span class="hljs-string" style="color: #98c379; line-height: 26px;">"天津市"</span>,<br> <span class="hljs-string" style="color: #98c379; line-height: 26px;">'河北'</span>:<span class="hljs-string" style="color: #98c379; line-height: 26px;">"河北省"</span>,<span class="hljs-string" style="color: #98c379; line-height: 26px;">'山西'</span>:<span class="hljs-string" style="color: #98c379; line-height: 26px;">"山西省"</span>,<br> <span class="hljs-string" style="color: #98c379; line-height: 26px;">'内蒙古'</span>:<span class="hljs-string" style="color: #98c379; line-height: 26px;">"内蒙古自治区"</span>,<span class="hljs-string" style="color: #98c379; line-height: 26px;">'辽宁'</span>:<span class="hljs-string" style="color: #98c379; line-height: 26px;">"辽宁省"</span>,<br> <span class="hljs-string" style="color: #98c379; line-height: 26px;">'吉林'</span>:<span class="hljs-string" style="color: #98c379; line-height: 26px;">"吉林省"</span>,<span class="hljs-string" style="color: #98c379; line-height: 26px;">'黑龙江'</span>:<span class="hljs-string" style="color: #98c379; line-height: 26px;">"黑龙江省"</span>,<br> <span class="hljs-string" style="color: #98c379; line-height: 26px;">'上海'</span>:<span class="hljs-string" style="color: #98c379; line-height: 26px;">"上海市"</span>,<span class="hljs-string" style="color: #98c379; line-height: 26px;">'安徽'</span>:<span class="hljs-string" style="color: #98c379; line-height: 26px;">"安徽省"</span>,...<br>}<br><br>data[<span class="hljs-string" style="color: #98c379; line-height: 26px;">'prov'</span>] = data[<span class="hljs-string" style="color: #98c379; line-height: 26px;">'省 份'</span>].map(province_mapping)<br></code></pre>
<p data-tool="mdnice编辑器" style="color: rgb(0, 0, 0); font-size: 16px; line-height: 1.8em; letter-spacing: 0em; text-align: left; text-indent: 0em; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; padding-top: 8px; padding-bottom: 8px; padding-left: 0px; padding-right: 0px;">绘制基于地图的省份理科一本线的详细代码如下:</p>
<pre class="custom" data-tool="mdnice编辑器" style="border-radius: 5px; box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px; text-align: left; margin-top: 10px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; padding-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px;"><span style="display: block; background: url(https://files.mdnice.com/user/3441/876cad08-0422-409d-bb5a-08afec5da8ee.svg); height: 30px; width: 100%; background-size: 40px; background-repeat: no-repeat; background-color: #282c34; margin-bottom: -7px; border-radius: 5px; background-position: 10px 10px;"></span><code class="hljs" style="overflow-x: auto; padding: 16px; color: #abb2bf; padding-top: 15px; background: #282c34; border-radius: 5px; display: -webkit-box; font-family: Consolas, Monaco, Menlo, monospace; font-size: 12px;"><span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">from</span> pyecharts <span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">import</span> options <span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">as</span> opts<br><span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">from</span> pyecharts.charts <span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">import</span> Map<br><br>c = (<br> Map()<br> .add(<span class="hljs-string" style="color: #98c379; line-height: 26px;">"学历教育合训类最高分"</span>, .tolist(), data[<span class="hljs-string" style="color: #98c379; line-height: 26px;">'学历教育合训类最高分'</span>].tolist())], <span class="hljs-string" style="color: #98c379; line-height: 26px;">"china"</span>)<br> .set_global_opts(<br> title_opts=opts.TitleOpts(title=<span class="hljs-string" style="color: #98c379; line-height: 26px;">"国防科技大学学历教育合训类最高分分布"</span>),<br> visualmap_opts=opts.VisualMapOpts(max_=max(data[<span class="hljs-string" style="color: #98c379; line-height: 26px;">'学历教育合训类最高分'</span>].tolist()),<br> min_=min(data[<span class="hljs-string" style="color: #98c379; line-height: 26px;">'学历教育合训类最高分'</span>].tolist())),<br> )<br> .render(<span class="hljs-string" style="color: #98c379; line-height: 26px;">"map_visualmap.html"</span>)<br>)<br></code></pre>
<figure data-tool="mdnice编辑器" style="margin-top: 10px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; padding-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; display: flex; flex-direction: column; justify-content: center; align-items: center;"><img src="https://files.mdnice.com/user/84866/cd713658-2889-4171-9577-affe50c6c901.png" alt style="display: block; margin-top: 0px; margin-right: auto; margin-bottom: 0px; margin-left: auto; max-width: 100%; border-top-style: none; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-width: 3px; border-bottom-width: 3px; border-left-width: 3px; border-right-width: 3px; border-top-color: rgba(0, 0, 0, 0.4); border-bottom-color: rgba(0, 0, 0, 0.4); border-left-color: rgba(0, 0, 0, 0.4); border-right-color: rgba(0, 0, 0, 0.4); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; object-fit: fill; box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px;"></figure>
!(data/attachment/forum/202412/31/150122tnrnnhlw98qh7iu0.png)
<h6 data-tool="mdnice编辑器" style="margin-top: 30px; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; padding-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; display: block;"><span class="prefix" style="display: none;"></span><span class="content" style="font-size: 14px; color: rgb(0, 0, 0); line-height: 1.5em; letter-spacing: 0em; text-align: left; font-weight: bold; display: block;">4.2 3D地图+3D柱状图工程技术类录取最高分情况</span><span class="suffix" style="display: none;"></span></h6>
<p data-tool="mdnice编辑器" style="color: rgb(0, 0, 0); font-size: 16px; line-height: 1.8em; letter-spacing: 0em; text-align: left; text-indent: 0em; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; padding-top: 8px; padding-bottom: 8px; padding-left: 0px; padding-right: 0px;">首先对数据进行清洗,做成绘图需要的数据结构,具体的数据结构如下:</p>
<pre class="custom" data-tool="mdnice编辑器" style="border-radius: 5px; box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px; text-align: left; margin-top: 10px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; padding-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px;"><span style="display: block; background: url(https://files.mdnice.com/user/3441/876cad08-0422-409d-bb5a-08afec5da8ee.svg); height: 30px; width: 100%; background-size: 40px; background-repeat: no-repeat; background-color: #282c34; margin-bottom: -7px; border-radius: 5px; background-position: 10px 10px;"></span><code class="hljs" style="overflow-x: auto; padding: 16px; color: #abb2bf; padding-top: 15px; background: #282c34; border-radius: 5px; display: -webkit-box; font-family: Consolas, Monaco, Menlo, monospace; font-size: 12px;">[(<span class="hljs-string" style="color: #98c379; line-height: 26px;">'广东'</span>, [<span class="hljs-number" style="color: #d19a66; line-height: 26px;">113.27</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">23.13</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">641</span>]),<br> (<span class="hljs-string" style="color: #98c379; line-height: 26px;">'黑龙江'</span>, [<span class="hljs-number" style="color: #d19a66; line-height: 26px;">127.9688</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">45.368</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">667</span>]),<br> (<span class="hljs-string" style="color: #98c379; line-height: 26px;">'内蒙古'</span>, [<span class="hljs-number" style="color: #d19a66; line-height: 26px;">110.3467</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">41.4899</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">641</span>]),<br> (<span class="hljs-string" style="color: #98c379; line-height: 26px;">'吉林'</span>, [<span class="hljs-number" style="color: #d19a66; line-height: 26px;">125.8154</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">44.2584</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">658</span>]),<br> (<span class="hljs-string" style="color: #98c379; line-height: 26px;">'辽宁'</span>, [<span class="hljs-number" style="color: #d19a66; line-height: 26px;">123.1238</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">42.1216</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">660</span>]),<br> (<span class="hljs-string" style="color: #98c379; line-height: 26px;">'河北'</span>, [<span class="hljs-number" style="color: #d19a66; line-height: 26px;">114.4995</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">38.1006</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">682</span>]),<br> (<span class="hljs-string" style="color: #98c379; line-height: 26px;">'天津'</span>, [<span class="hljs-number" style="color: #d19a66; line-height: 26px;">117.4219</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">39.4189</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">659</span>]),<br> (<span class="hljs-string" style="color: #98c379; line-height: 26px;">'山西'</span>, [<span class="hljs-number" style="color: #d19a66; line-height: 26px;">112.3352</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">37.9413</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">639</span>]),<br> (<span class="hljs-string" style="color: #98c379; line-height: 26px;">'陕西'</span>, [<span class="hljs-number" style="color: #d19a66; line-height: 26px;">109.1162</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">34.2004</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">665</span>]),<br> (<span class="hljs-string" style="color: #98c379; line-height: 26px;">'甘肃'</span>, [<span class="hljs-number" style="color: #d19a66; line-height: 26px;">103.5901</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">36.3043</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">632</span>]),<br> (<span class="hljs-string" style="color: #98c379; line-height: 26px;">'宁夏'</span>, [<span class="hljs-number" style="color: #d19a66; line-height: 26px;">106.3586</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">38.1775</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">637</span>]),<br> (<span class="hljs-string" style="color: #98c379; line-height: 26px;">'青海'</span>, [<span class="hljs-number" style="color: #d19a66; line-height: 26px;">101.4038</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">36.8207</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">596</span>]),<br> (<span class="hljs-string" style="color: #98c379; line-height: 26px;">'新疆'</span>, [<span class="hljs-number" style="color: #d19a66; line-height: 26px;">87.9236</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">43.5883</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">673</span>]),<br> (<span class="hljs-string" style="color: #98c379; line-height: 26px;">'西藏'</span>, [<span class="hljs-number" style="color: #d19a66; line-height: 26px;">91.11</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">29.97</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">0</span>]),<br> (<span class="hljs-string" style="color: #98c379; line-height: 26px;">'四川'</span>, [<span class="hljs-number" style="color: #d19a66; line-height: 26px;">103.9526</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">30.7617</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">665</span>]),<br> (<span class="hljs-string" style="color: #98c379; line-height: 26px;">'重庆'</span>, [<span class="hljs-number" style="color: #d19a66; line-height: 26px;">108.384366</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">30.439702</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">671</span>]),<br> (<span class="hljs-string" style="color: #98c379; line-height: 26px;">'山东'</span>, [<span class="hljs-number" style="color: #d19a66; line-height: 26px;">117.1582</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">36.8701</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">679</span>]),<br> (<span class="hljs-string" style="color: #98c379; line-height: 26px;">'河南'</span>, [<span class="hljs-number" style="color: #d19a66; line-height: 26px;">113.4668</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">34.6234</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">665</span>]),<br> (<span class="hljs-string" style="color: #98c379; line-height: 26px;">'江苏'</span>, [<span class="hljs-number" style="color: #d19a66; line-height: 26px;">118.8062</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">31.9208</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">404</span>]),<br> (<span class="hljs-string" style="color: #98c379; line-height: 26px;">'安徽'</span>, [<span class="hljs-number" style="color: #d19a66; line-height: 26px;">117.29</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">32.0581</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">655</span>]),<br> (<span class="hljs-string" style="color: #98c379; line-height: 26px;">'湖北'</span>, [<span class="hljs-number" style="color: #d19a66; line-height: 26px;">114.3896</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">30.6628</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">665</span>]),<br> (<span class="hljs-string" style="color: #98c379; line-height: 26px;">'浙江'</span>, [<span class="hljs-number" style="color: #d19a66; line-height: 26px;">119.5313</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">29.8773</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">692</span>]),<br> (<span class="hljs-string" style="color: #98c379; line-height: 26px;">'福建'</span>, [<span class="hljs-number" style="color: #d19a66; line-height: 26px;">119.4543</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">25.9222</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">632</span>]),<br> (<span class="hljs-string" style="color: #98c379; line-height: 26px;">'江西'</span>, [<span class="hljs-number" style="color: #d19a66; line-height: 26px;">116.0046</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">28.6633</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">645</span>]),<br> (<span class="hljs-string" style="color: #98c379; line-height: 26px;">'湖南'</span>, [<span class="hljs-number" style="color: #d19a66; line-height: 26px;">113.0823</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">28.2568</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">662</span>]),<br> (<span class="hljs-string" style="color: #98c379; line-height: 26px;">'贵州'</span>, [<span class="hljs-number" style="color: #d19a66; line-height: 26px;">106.6992</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">26.7682</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">671</span>]),<br> (<span class="hljs-string" style="color: #98c379; line-height: 26px;">'广西'</span>, [<span class="hljs-number" style="color: #d19a66; line-height: 26px;">108.479</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">23.1152</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">642</span>]),<br> (<span class="hljs-string" style="color: #98c379; line-height: 26px;">'海南'</span>, [<span class="hljs-number" style="color: #d19a66; line-height: 26px;">110.3893</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">19.8516</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">829</span>]),<br> (<span class="hljs-string" style="color: #98c379; line-height: 26px;">'上海'</span>, [<span class="hljs-number" style="color: #d19a66; line-height: 26px;">121.4648</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">31.2891</span>, <span class="hljs-number" style="color: #d19a66; line-height: 26px;">489</span>])]<br></code></pre>
<p data-tool="mdnice编辑器" style="color: rgb(0, 0, 0); font-size: 16px; line-height: 1.8em; letter-spacing: 0em; text-align: left; text-indent: 0em; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; padding-top: 8px; padding-bottom: 8px; padding-left: 0px; padding-right: 0px;">以('广东', )为例,'广东'表示省份,表示广东的经纬度,而641表示国防科技大学在广东省工程技术类招聘的最高分为641分;
具体的绘图代码如下:</p>
<pre class="custom" data-tool="mdnice编辑器" style="border-radius: 5px; box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px; text-align: left; margin-top: 10px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; padding-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px;"><span style="display: block; background: url(https://files.mdnice.com/user/3441/876cad08-0422-409d-bb5a-08afec5da8ee.svg); height: 30px; width: 100%; background-size: 40px; background-repeat: no-repeat; background-color: #282c34; margin-bottom: -7px; border-radius: 5px; background-position: 10px 10px;"></span><code class="hljs" style="overflow-x: auto; padding: 16px; color: #abb2bf; padding-top: 15px; background: #282c34; border-radius: 5px; display: -webkit-box; font-family: Consolas, Monaco, Menlo, monospace; font-size: 12px;"><span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">import</span> pyecharts.options <span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">as</span> opts<br><span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">from</span> pyecharts.charts <span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">import</span> Map3D<br><span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">from</span> pyecharts.globals <span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">import</span> ChartType<br> <br>map3d = (<br> <span class="hljs-comment" style="color: #5c6370; font-style: italic; line-height: 26px;"># 3D地图</span><br> Map3D(<br> <span class="hljs-comment" style="color: #5c6370; font-style: italic; line-height: 26px;"># 初始化配置项</span><br> init_opts=opts.InitOpts(<br> theme=<span class="hljs-string" style="color: #98c379; line-height: 26px;">'white'</span>, <span class="hljs-comment" style="color: #5c6370; font-style: italic; line-height: 26px;"># 图表主题 white dark</span><br> width=<span class="hljs-string" style="color: #98c379; line-height: 26px;">'99vw'</span>, <span class="hljs-comment" style="color: #5c6370; font-style: italic; line-height: 26px;"># 图表画布宽度</span><br> height=<span class="hljs-string" style="color: #98c379; line-height: 26px;">'97vh'</span>, <span class="hljs-comment" style="color: #5c6370; font-style: italic; line-height: 26px;"># 图标画布长度</span><br> )<br> )<br> <span class="hljs-comment" style="color: #5c6370; font-style: italic; line-height: 26px;"># !!!!全局配置项!!!!</span><br> .set_global_opts(<br> <span class="hljs-comment" style="color: #5c6370; font-style: italic; line-height: 26px;"># 标题配置项</span><br> title_opts=opts.TitleOpts(<br> title=<span class="hljs-string" style="color: #98c379; line-height: 26px;">"3D地图+柱状图"</span>, <span class="hljs-comment" style="color: #5c6370; font-style: italic; line-height: 26px;"># 主标题</span><br> ),<br> <span class="hljs-comment" style="color: #5c6370; font-style: italic; line-height: 26px;"># 视觉映射配置项</span><br> visualmap_opts=opts.VisualMapOpts(<br> is_show=<span class="hljs-literal" style="color: #56b6c2; line-height: 26px;">True</span>, <span class="hljs-comment" style="color: #5c6370; font-style: italic; line-height: 26px;"># 是否显示视觉映射配置</span><br> max_=<span class="hljs-number" style="color: #d19a66; line-height: 26px;">1000</span>, <span class="hljs-comment" style="color: #5c6370; font-style: italic; line-height: 26px;"># 指定 visualMapPiecewise 组件的最大值</span><br> ),<br> )<br> <span class="hljs-comment" style="color: #5c6370; font-style: italic; line-height: 26px;"># !!!!系列配置项!!!!</span><br> .set_series_opts(<br> <span class="hljs-comment" style="color: #5c6370; font-style: italic; line-height: 26px;"># 标签名称显示,默认为True</span><br> label_opts=opts.LabelOpts(<br> is_show=<span class="hljs-literal" style="color: #56b6c2; line-height: 26px;">True</span> <span class="hljs-comment" style="color: #5c6370; font-style: italic; line-height: 26px;"># 是否显示标签名字</span><br> )<br> )<br> .add_schema(<br> <span class="hljs-comment" style="color: #5c6370; font-style: italic; line-height: 26px;"># 地图类型</span><br> maptype=<span class="hljs-string" style="color: #98c379; line-height: 26px;">'china'</span>,<br> <span class="hljs-comment" style="color: #5c6370; font-style: italic; line-height: 26px;"># 图元样式配置项</span><br> itemstyle_opts=opts.ItemStyleOpts(<br> <span class="hljs-comment" style="color: #5c6370; font-style: italic; line-height: 26px;"># 图形的颜色</span><br> color=<span class="hljs-string" style="color: #98c379; line-height: 26px;">"#1661AB"</span>,<br> <span class="hljs-comment" style="color: #5c6370; font-style: italic; line-height: 26px;"># 描边宽度,默认不描边。</span><br> border_width=<span class="hljs-number" style="color: #d19a66; line-height: 26px;">0.8</span>,<br> <span class="hljs-comment" style="color: #5c6370; font-style: italic; line-height: 26px;"># 图形的描边颜色。支持的颜色格式同 color,不支持回调函数。</span><br> border_color=<span class="hljs-string" style="color: #98c379; line-height: 26px;">"rgb(62,215,213)"</span><br> ),<br> )<br> <span class="hljs-comment" style="color: #5c6370; font-style: italic; line-height: 26px;"># 数据配置</span><br> .add(<br> <span class="hljs-comment" style="color: #5c6370; font-style: italic; line-height: 26px;"># 系列名称,用于 tooltip 的显示,legend 的图例筛选</span><br> series_name=<span class="hljs-string" style="color: #98c379; line-height: 26px;">'人数'</span>,<br> <span class="hljs-comment" style="color: #5c6370; font-style: italic; line-height: 26px;"># 数据项 (坐标点名称,坐标点值)</span><br> data_pair=data_pair,<br> <span class="hljs-comment" style="color: #5c6370; font-style: italic; line-height: 26px;"># 叠加图的类型(目前只支持 Bar3D,Line3D,Lines3D,Scatter3D)</span><br> type_=ChartType.BAR3D,<br> <span class="hljs-comment" style="color: #5c6370; font-style: italic; line-height: 26px;"># 柱体大小</span><br> bar_size=<span class="hljs-number" style="color: #d19a66; line-height: 26px;">1</span>,<br> )<br>)<br>map3d.render(<span class="hljs-string" style="color: #98c379; line-height: 26px;">"3D_Map.html"</span>)<br></code></pre>
<figure data-tool="mdnice编辑器" style="margin-top: 10px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; padding-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; display: flex; flex-direction: column; justify-content: center; align-items: center;"><img src="https://files.mdnice.com/user/84866/9bdb817b-d322-4897-8678-a3f2958ba49d.png" alt style="display: block; margin-top: 0px; margin-right: auto; margin-bottom: 0px; margin-left: auto; max-width: 100%; border-top-style: none; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-width: 3px; border-bottom-width: 3px; border-left-width: 3px; border-right-width: 3px; border-top-color: rgba(0, 0, 0, 0.4); border-bottom-color: rgba(0, 0, 0, 0.4); border-left-color: rgba(0, 0, 0, 0.4); border-right-color: rgba(0, 0, 0, 0.4); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; object-fit: fill; box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px;"></figure>
!(data/attachment/forum/202412/31/150055ut1sekl18kpsns1g.png)
<h4 data-tool="mdnice编辑器" style="margin-top: 30px; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; padding-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; display: block;"><span class="prefix" style="display: none;"></span><span class="content" style="font-size: 18px; color: rgb(0, 0, 0); line-height: 1.5em; letter-spacing: 0em; text-align: left; font-weight: bold; display: block;">结论</span><span class="suffix" style="display: none;"></span></h4>
<p data-tool="mdnice编辑器" style="color: rgb(0, 0, 0); font-size: 16px; line-height: 1.8em; letter-spacing: 0em; text-align: left; text-indent: 0em; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; padding-top: 8px; padding-bottom: 8px; padding-left: 0px; padding-right: 0px;">通过对国防科技大学2016年的录取分数数据进行可视化分析,我们可以得出以下结论:</p>
<p data-tool="mdnice编辑器" style="color: rgb(0, 0, 0); font-size: 16px; line-height: 1.8em; letter-spacing: 0em; text-align: left; text-indent: 0em; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; padding-top: 8px; padding-bottom: 8px; padding-left: 0px; padding-right: 0px;">不同省份的高考总分不同,具体结果不具有实际意义,但并不影响数据可视化分析的流程;</p>
</section>
页:
[1]