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')