【python】数据分析实战:分析全国旅游景点数据,暑假还不知道去哪玩的

【python】数据分析实战:分析全国旅游景点数据,暑假还不知道去哪玩的


2024年1月23日发(作者:)

1、各星级景点数量# 1. 景点星级分布star_num = df_qa['star'].value_counts()

# 数据对data_pair = [list(z) for z in zip(star_, star_())]# 饼图pie1 = Pie(init_opts=ts(width='900px', height='750px'))(

series_name="num", radius=["35%", "60%"], data_pair=data_pair, label_opts=pts( position="outside", formatter="{a|{a}}{abg|}n{hr|}n {b|{b}: }{c} {per|{d}%} ", background_color="#eee", border_color="#aaa", border_width=1, border_radius=4, rich={ "a": {"color": "#999", "lineHeight": 22, "align": "center"}, "abg": { "backgroundColor": "#e3e3e3", "width": "100%", "align": "right", "height": 22, "borderRadius": [4, 4, 0, 0], }, "hr": { "borderColor": "#aaa", "width": "100%", "borderWidth": 0.5, "height": 0, }, "b": {"fontSize": 16, "lineHeight": 33}, "per": { "color": "#eee", "backgroundColor": "#334455", "padding": [2, 4], "borderRadius": 2, }, }, ),)_global_opts(legend_opts=Opts(pos_left="left", pos_top='30%', orient="vertical"),

title_opts=pts(title='全国景点星级分布'))_series_opts( tooltip_opts=pOpts(trigger="item", formatter="{a}
{b}: {c} ({d}%)") )_notebook()

2、全国各省份景点数量Top15


发布者:admin,转转请注明出处:http://www.yc00.com/news/1705973542a1432351.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信