Travel Tips
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
使用Python中的pyecharts库读取csv文件绘制词云
* 效果展示
* python代码
```python from pyecharts import WordCloud import pandas as pd wd = pd.read_csv('cp.csv') word = [i[0] for i in wd[['关键词']].values] value = [i[0] for i in wd[['词频']].values] wordCloud = WordCloud(width=2000, height=2000) wordCloud.add('词云', word, value, word_size_range=[10, 120], shape='star') wordCloud.render('word.html')
```
* 数据文件链接: https://pan.baidu.com/s/15oRNYvQGcLsdi6p3awRC_A 密码: riof
Sed ac lorem felis. Ut in odio lorem. Quisque magna dui, maximus ut commodo sed, vestibulum ac nibh. Aenean a tortor in sem tempus auctor
December 4, 2020 at 3:12 pm
Sed ac lorem felis. Ut in odio lorem. Quisque magna dui, maximus ut commodo sed, vestibulum ac nibh. Aenean a tortor in sem tempus auctor
December 4, 2020 at 3:12 pm
Donec in ullamcorper quam. Aenean vel nibh eu magna gravida fermentum. Praesent eget nisi pulvinar, sollicitudin eros vitae, tristique odio.
December 4, 2020 at 3:12 pm
我是 s enim interduante quis metus. Duis porta ornare nulla ut bibendum
Rosie
6 minutes ago