上传者: 38732425
|
上传时间: 2021-04-21 18:48:25
|
文件大小: 131KB
|
文件类型: PDF
效果展示
*
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')