728x90
워드 클라우드 차트는 데이터 중의 키워드 등을 직관적으로 파악할 수 있도록 핵심 단어의 빈도가 많을수록 글자를 크게 표현하여 시각적으로 돋보이게 하는 차트이다.
import matplotlib.pyplot as plt
from wordcloud import WordCloud
if __name__ == '__main__':
text = ('Python Python Python WordCloud Stock Bond Realestate Bitcoin Stock YOneLabs YOneLabs YOneLabs')
wordcloud = WordCloud(width=480, height=480, margin=0).generate(text)
plt.imshow(wordcloud, interpolation='bilinear')
plt.axis('off')
plt.margins(x=0, y=0)
plt.show()
728x90
'Data Science > Data Visualization' 카테고리의 다른 글
[05. Etcetera Chart] 009. Heat Map (0) | 2021.10.06 |
---|---|
[05. Etcetera Chart] 008. Gantt Chart (0) | 2021.10.06 |
[05. Etcetera Chart] 006. Funnel Plot (0) | 2021.10.06 |
[05. Etcetera Chart] 005. Rader Chart (0) | 2021.09.06 |
[05. Etcetera Chart] 004. Bubble Chart (0) | 2021.09.06 |