- 处理
- 计算
- 可视化
- Pandas
- wordcloud
- 词云
-
filename = "Friends.txt"
with open(filename, encoding="utf8") as f:
mytext = f.read()
from wordcloud import WordCloud
# wordcloud = WordCloud().generate(mytext)
wordcloud = WordCloud(font_path="simsun.ttf").generate(mytext)
%pylab inline
import matplotlib.pyplot as plt
plt.imshow(wordcloud, interpolation='bilinear')
plt.axis("off")
- matplotlib
- 图形
- %matplotlib inline
- %pylib
- 对象
- pyplot
- plot()
- title()
- legend()
- figure()
- show()
- scatter()
- annotate()
- savefig()
- 魔法函数
- seaborn
- plotnine
- plotnine
- ggplot
- pyLDAvis
- enable_notebook()
- show()
- 对象