您现在的位置是:貌合心离网 > 热点
源码开放:基于Pyecharts可视化分析苏州旅游攻略
貌合心离网2026-11-14【热点】{固定数字1}人已围观
简介谷歌maps群发程序|软件【tg:seogoogle987】
大家好,我是Peter~
全国旅游城市终于又更新啦!以前写过厦门、长沙、成都、西安、大连。今天带来的是:上有天堂,下有苏杭:苏州来了??终于挤出时间把苏州的旅游景点和美食的攻略写完了。
很多年之前Peter去苏州旅游过一次,所以还是有些印象。到现在还记得当年去的几个景点:观前街、留园、苏州博物馆……
个人觉得苏州这个城市还是蛮不错的,真的是江南城市代表。到达苏州站,看到苏州护城河,河街相邻;走到城市中,房子低檐,粉墙黛瓦,老街园林到处可见;看到各种园林古迹,历史感比较厚重;听到当地人说话,温婉尔雅,轻声细语。
将来一定会找个时机再游苏州~
苏州
苏州是中国经济高度发达的地区,是江苏省的经济中心、工商业和物流中心源码城市,也是重要的金融、文化、艺术、教育和交通中心。下面这幅图来自维基百科,可以看到组成苏州的几个县级市和区。巩固下地理吧~
数据来源
本文中共有两份数据:苏州美食和苏州景点。数据是通过爬虫方式获取的,文末有数据分析源码获取方式。
郑重声明:本文的数据仅作为数据分析和可视化效果展示使用,未用作其他用途;若有转载,请注明出处~
数据效果
我们以苏州景点的数据分析作为展示。本文亮点是所有的图形使用的是可视化库:pyecharts,这是一个国产的可视化库
苏州景点
苏州景点的数据分析主要是从以下几个方面展开:
导入库 import pandas as pd import re  开放;# 显示所有列 # pd.set_option('display.max_columns', None) # 显示所有行 # pd.set_option('display.max_rows', None) # 设置value的显示长度为100,默认为50 # pd.set_option('max_colwidth',100) # 绘图相关 import jieba import matplot:基lib.pyplot as plt from pyecharts.globals import CurrentConfig, OnlineHostType # 事先导入,防止不出图 from pyecharts import options as opts # 配置项 from pyecharts.charts import Bar, Pie, Line于P, Funnel, WordCloud, Grid, Page # 各个图形的类 from pyecharts.commons.utils import JsCode from pyecharts.globals import ThemeType,SymbolType
省略相关的数据导入和数据探索部分,重点是看看数据分析的结果。苏州景点数据有2000*8
景点分布
在这里展示的苏州各个地方的景点个数:
c = (ye Pie(init_opts=opts.InitOpts(theme=ThemeType.CHALK)) .add("", [list(z) for z in zip(df2["location"].tolist(), df2["number"].tolist())]) .set_global_opts(title_opts=opts.TitleOpts(title="苏州景点分布"ch), legend_opts=opts.LegendOpts(pos_left="80%", orient="vertical")) .set_series_opts(label_opts=opts.LabelOpts(formatter="{b}: {c}"))&nbsarp;) c.render_notebook()
攻略数前10名的景点
很多的景点都有游客写了攻略数,我们可以把攻略数作为一种参考:
景点评论数
驴友百分比
驴友百分比表示的是大致有多少的游客到过相同的景点:
园林城市
苏州是一个园林城市,我们从数据中看到:本次获取到的数据里面苏州有457个和“园”相关的景点。比较出名的还是:
拙政园 留园 网师园
古城街道
苏州也是一个历史感很厚重的城市,数据中显示有106条的街道:
山塘街 平江路历史街区 观前街
寺庙
数据中也显示苏州共有96个寺庙:其中最为出名的还是寒山寺
月落乌啼霜满天,江枫渔火对愁眠,姑苏城外寒山寺,夜半钟声到客船
景点词云图
我们获取到的数据景点的中文名和简介进ts行了词云图展示:
1、全部的词云展示
2、截取前50个高频词
通过两种词云图的展示,我们发现苏州的景点中:
公园是比较多的 各种馆,比如:博物馆、展览馆、艺术馆、美术馆等也很丰富 文化气息浓厚:文化、文物保护、建筑等 苏州美食
苏州美食数据有2000条,6个字段。
得分分布
得分这个字段的分布情况。得分为0.0表示没有得分
从上图中我们可以看到很多店是没有评分的。接下来,我们看看评分为5分的都是哪些店铺(取前10名)
牛排店 知名酒店 咖啡厅
消费均价
对字段“均价”的统计分析,分类的规则:
def price(x): if x < 20:&nb可视sp; return "很便宜" if x < 50: return "价格亲民" if x < 100:  化分;return "可以接受" if x < 200: return "人均消费较高" else: return "高档餐厅"
利用下面的代码进行饼图的绘制:
c = (  析苏; Pie(init_opts=opts.InitOpts(theme=ThemeType.CHALK)) .add("", [list(z) for z in zip(df5["分类"].tolist(), df5["数量"].tolist())]) .set_global_opts(title_opts=opts.TitleOpts(title="苏州美食店铺均价数量占比分布",subtitle="备注:排除没有均价店州旅铺"), legend_opts=opts.LegendOpts(pos_left="80%", orient="vertical")) .set_series_opts(label_opts=opts.LabelOpts(formatter="{b}: {c}"))&nb游攻sp;) c.render_notebook()
高消费餐厅
通过均价字段的降序,我们看看苏州的高消费地方都是哪里?
酒店
数据中显示苏州有酒店86家,其中知名的酒店:
苏州洲际酒店 金陵饭店花园酒店 苏州金鸡湖新罗酒店
面馆
总共117家面馆,如果你是个面食爱好者,这些地方你一定不要错过:
老东吴面馆(莫厘路店) 奥灶面 同得兴精品面馆(观前街店)
美食店统计
从面馆、烧烤、酒店、火锅串串等8个不同的方面进行美食店铺的统计:
美食词云
苏州的美食词云图主要是将数据的“推荐菜”这个字段进行词云图的展示,看看当地人爱好哪些美食。
1、全部词云图
2、前50个词语
从词云图中可以看到,苏州人的口味还是很清淡的。游客的推荐菜中源码:
牛肉为主要菜品 菜的做法:红烧(肉)、清蒸、烤 钟爱虾:虾、虾仁、河虾等 喜欢海鲜:尤其是鱼,还有鱿鱼、、三文鱼等
苏州属于太湖境内,肯定是不能错过大闸蟹。
总结
看完上面苏州旅游景点和美食的分析,如果你到苏州必去的地方:
园林:拙政园、留园 寺庙:寒山寺、重元寺 街道:山塘街、平江路历史街区、观前街 苏州博物馆
你必不能错过的美食:
苏州的牛肉(牛肉粉、牛肉酥等),可以品尝 虾蟹:太湖区域水产品多,比如虾仁、大闸蟹等 面食:馄饨、生煎你也不能错过。记得当时Peter吃过一家名为“乐惠”的小馄饨,挺赞的~还有苏式汤面也值得品尝
很赞哦!(81607970)
相关文章
- IDC发布2023年中国整体超融合市场报告,深信服第一
- 谷歌流量显著下降,People Inc. 与微软达成 AI 内容授权协议
- 最新数据显示:网络上超过 50% 的文章是 AI 生成的
- 标签: 顾家家居 顾家集团 顾江生 圣奥集团
- 图灵奖得主Bengio又出新论文,Reddit崩溃:idea撞车了
- AI代码审查新秀CodeRabbit获6000万美元融资,估值达5.5亿美元
- 云计算核心技术Docker教程:Docker 守护进程dockerd存储驱动程序
- 量子计算竞赛:量子技术将如何以及何时影响行业领域?
- 美国云计算公司Salesforce拟以277亿美元价格收购Slack
- 标签: 舍弗勒 人形机器人 具身智能 精密驱动
站长推荐
友情链接
- 标签: 康师傅
- https://www.le-trend.com/en/search/=谷歌maps群发程序|软件【tg:seogoogle987】,6mw
- https://www.localfootdoc.com/?s=谷歌maps群发程序|软件【tg:seogoogle987】,ZhM
- https://www.riohondo.edu/?action=QUERY&s=谷歌maps群发程序|软件【tg:seogoogle987】,V2J
- https://www.trockenmittel.ch/catalogsearch/result/?iC=ZM3&q=谷歌maps群发程序|软件【tg:seogoogle987】,hFu
- https://www.laoairlines.com/?action=QUERY&s=谷歌maps群发程序|软件【tg:seogoogle987】,HSf
- https://www.sebson.de/en/search?query=谷歌maps群发程序|软件【tg:seogoogle987】,jDR
- https://www.sogou.com/web?query=谷歌maps群发程序|软件【tg:seogoogle987】,BaH
- https://www.solerpalau.com/en-en/catalogsearch/result/?q=谷歌maps群发程序|软件【tg:seogoogle987】,sry
- https://www.wmfe.org/?s=谷歌maps群发程序|软件【tg:seogoogle987】,Wgw
- https://www.sweat.com/collections/vendors?q=谷歌maps群发程序|软件【tg:seogoogle987】,Jnk
- https://www.supersauna.de/catalogsearch/result/?q=谷歌maps群发程序|软件【tg:seogoogle987】,qo3
- https://www.remit.co.jp/pt/?action=CHECK&s=谷歌maps群发程序|软件【tg:seogoogle987】,dOo
- https://www.so.com/s?ie=utf-8&src=360sou_home&_re=0&q=谷歌maps群发程序|软件【tg:seogoogle987】,QCb
- https://www.wou.edu.my/?s=谷歌maps群发程序|软件【tg:seogoogle987】,yny
- https://www.lssystems.co.uk/search?page=0&per_page=24&term=谷歌maps群发程序|软件【tg:seogoogle987】,yxb
- https://www.welshmountainzoo.org/shop/index.php?routeproduct/search&tag=谷歌maps群发程序|软件【tg:seogoogle987】,AqE
- https://www.reallywildbirdfood.co.uk/store/search?q=谷歌maps群发程序|软件【tg:seogoogle987】,dVH
- https://www.nonsolocap.it/cap?action=SEARCH&k=谷歌maps群发程序|软件【tg:seogoogle987】,pmc
- https://store.line.me/search/sticker/ja?q=谷歌maps群发程序|软件【tg:seogoogle987】puE
- https://www.teamlab.art/ko/?submit=谷歌maps群发程序|软件【tg:seogoogle987】,Mzh
- https://www.roberthalf.com/us/en/jobs/all/谷歌maps群发程序|软件【tg:seogoogle987】q3g
- https://www.routesonline.com/search/?query=谷歌maps群发程序|软件【tg:seogoogle987】,ZFa
- https://www.qwant.com/?q=谷歌maps群发程序|软件【tg:seogoogle987】,p9J
- https://5gaa.org/?token=6e2l7hjt2i26gzgctgwdrv7v0j6nxorq&s=谷歌maps群发程序|软件【tg:seogoogle987】N45
- https://www.nextavenue.org/?action=QUERY&s=谷歌maps群发程序|软件【tg:seogoogle987】,fyx
- https://www.uctronics.com/catalogsearch/result/?q=谷歌maps群发程序|软件【tg:seogoogle987】,MLg
- https://www.randjleather.co.uk/index.php?route=product/search&tag=谷歌maps群发程序|软件【tg:seogoogle987】,IHk
- https://www.zutari.com/?s=谷歌maps群发程序|软件【tg:seogoogle987】,Q5Y
- https://www.nslcleaders.org/?s=谷歌maps群发程序|软件【tg:seogoogle987】,T0N
- https://www.yli.ro/catalogsearch/result/?q=谷歌maps群发程序|软件【tg:seogoogle987】,XZi
- https://yscc1986.net/search/谷歌maps群发程序|软件【tg:seogoogle987】Q0a
- https://www.libros.unam.mx/catalogsearch/result/?cat=37&dir=asc&format=20&lit=20&manufacturer=3230&mode=list&order=year_edition&q=谷歌maps群发程序|软件【tg:seogoogle987】,oWP
- https://www.pearlstonecenter.org/search/谷歌maps群发程序|软件【tg:seogoogle987】,gPd
- https://www.lenovo.com/gb/en/search?action=SEARCH&text=谷歌maps群发程序|软件【tg:seogoogle987】,DFM
- https://www.swanagerailway.co.uk/search?q=谷歌maps群发程序|软件【tg:seogoogle987】,1VV
- https://hsmoa.com/search?query=谷歌maps群发程序|软件【tg:seogoogle987】814
- https://www.flickr.com/photos/tags/谷歌maps群发程序|软件【tg:seogoogle987】NIH
- https://www.kaliastyle.com/catalogsearch/result/?q=GOOGLE谷歌maps群发程序|软件【tg:seogoogle987】,x6V
- https://www.maigoo.com/search/?block=&q=谷歌maps群发程序|软件【tg:seogoogle987】,2Vq
- https://dict.naver.com/dict.search?dicQuery&query=谷歌maps群发程序|软件【tg:seogoogle987】WpK
- https://www.madebyoranges.com/nl/search/谷歌maps群发程序|软件【tg:seogoogle987】,sYv
- https://hsmoa.com/search?query=谷歌maps群发程序|软件【tg:seogoogle987】3SL
- https://www.londontheatredirect.com/search/谷歌maps群发程序|软件【tg:seogoogle987】,vlj
- https://www.smics.com/tc/site/search?token=谷歌maps群发程序|软件【tg:seogoogle987】,mfC
- https://www.yr.no/en/search?q=谷歌maps群发程序|软件【tg:seogoogle987】,qOl
- https://www.jusoen.com/addreng.asp?p1=谷歌maps群发程序|软件【tg:seogoogle987】ZZH
- https://www.nbm.org/?action=QUERY&s=谷歌maps群发程序|软件【tg:seogoogle987】,JO3
- https://www.mdbg.net/chinese/dictionary?page=worddict&wdrst=0&wdqb=谷歌maps群发程序|软件【tg:seogoogle987】,q9h
- https://www.navylookout.com/?ID=nSBR6Ivdu6lZg1yr2SDs30Lo5sTs76yJ&s=谷歌maps群发程序|软件【tg:seogoogle987】,QEJ
- https://www.lneg.pt/?cat=140&s=谷歌maps群发程序|软件【tg:seogoogle987】,rRJ







