-
카테고리
-
세부 분야
데이터 분석
-
해결 여부
미해결
wordcloud 함수에서 random_state
21.02.05 21:58 작성 조회수 322
2
def wordcloud(data, width=1200, height=500):
word_draw = WordCloud(
font_path=r"C:\Windows\Fonts\malgun.ttf",
width=width, height=height,
stopwords=['운동기구','개소','외종','외','종'],
background_color="white",
random_state=42)
word_draw.generate(data)
plt.figure(figsize=(15,5))
plt.imshow(word_draw)
plt.axis('off') #축을 그리지 말라는 의미
plt.show()
이 함수 그릴 때 random_state=42로 쓰셨는데
42 숫자는 의미 없는 건가요?
그냥 아무 숫자나 써주면 되는 건가요~?
답변을 작성해보세요.
0
답변 1