인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

Inflearn Community Q&A

gidtnrl12's profile image
gidtnrl12

asked

Getting started with Python data analysis using public data

[13/21] Counting text frequency through keyword extraction

마지막에 sum() 으로 바꿔준 값

Written on

·

286

1

그 값들을 wordcloud 로 그릴 수 있는 방법이 있을까요!?

str(df[facilites].sum()) 을 해서 바꾸는 방법 말고도 있나요!?

pandasnumpypython

Answer 3

1

gidtnrl12님의 프로필 이미지
gidtnrl12
Questioner

아하 감사합니다~!

0

todaycode님의 프로필 이미지
todaycode
Instructor

감사합니다 :)

0

todaycode님의 프로필 이미지
todaycode
Instructor

안녕하세요.

아쉽게도 wordcloud 로 쉽게 그릴 수 있는 방법은 아직 찾지 못 했어요.

해당 빈도수 만큼 텍스트를 생성해서 wordcloud 에 넣어주는 방법이 그나마 쉬운 방법일거 같습니다.

예를 들어 화장실이 2000번 등장 한다면 "화장실" * 2000 등으로 빈도수가 여러 번 나오도록 생성해서 wordclod 에 넣어주는 방법이 있을거 같아요.

gidtnrl12's profile image
gidtnrl12

asked

Ask a question