inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

묻고 답해요

173만명의 커뮤니티!! 함께 토론해봐요.

왓챠피디아 리뷰 크롤링 관련 질문입니다

미해결

왓챠피디아에 올라가 있는 넷플릭스 드라마 리뷰들을 파이썬으로 웹 크롤링 해보고 싶어서 https://github.com/Stan7s/IMDb-Review-Crawler/blob/master/IMDb-Review-Crawler.py 의 imdb 크롤링 방식을 참고했습니다. 그런데 IMDB에선 잘 되던 것이, 왓챠피디아 쪽은 리뷰가 크롤링 되지 않습니다. 어떻게 하면 해결할 수 있을까요? #수집하고 싶은 영화의 user riviews 페이지 url 붙여넣기 url = 'https://pedia.watcha.com/ko-KR/contents/tRzLggZ/comments' #수집하고 싶은 영화 리뷰 수 지정 MAX_CNT = 150 cnt = 0 print("url = ", url) res = requests.get(url) res.encoding = 'utf-8' soup = BeautifulSoup(res.text, "lxml") load_more = soup.select(".load-more-data") flag = True if len(load_more): ajaxurl = load_more[0]['data-ajaxurl'] base_url = base_url + ajaxurl + "?ref_=undefined&paginationKey=" key = load_more[0]['data-key'] else: flag = False while flag: url = base_url + key print("url = ", url) res = requests.get(url) res.encoding = 'utf-8' soup = BeautifulSoup(res.text, "lxml") for item in soup.select(".lister-item-content"): rating = item.select("span.rating-other-user-rating > span") if len(rating) == 2: rating = rating[0].text review = item.select(".text")[0].text pn = rating_transfer(int(rating)) review_list.append(review) rating_list.append(pn) cnt = cnt + 1 else: rating = "" review = item.select(".text")[0].text

  • 크롤링
  • 넷플릭스
  • 왓챠
  • 왓챠피디아
  • 파이썬
  • 웹크롤링
댓글 1 좋아요 0 조회수 2425

파이썬 합계 오류

미해결

파이참으로 100~200 까지 3의 배수 인쇄하고, 그의 합 구하고 있는데 3의 배수 5개씩 인쇄는 잘 했는데 합계가 이상하게 구해집니다. 오류가 어디에 있는 건지 모르겠어요.. 고치면 오류떠서 아예 실행이 안되는데 ㅜㅜ for문이랑 while문 두개로 만들고 있는데 둘다 합계만 이상하게 뜹니다. ㅠ <<for문>> a = 0 hap = 0 count = 0 for a in range(100, 201) : if a % 3 == 0 : print(a) count = count + 1 if count % 5 == 0 : print() a = a + 1 hap = hap + a print("100~200 중 3의 배수의 합 : %d" % hap) <<while문>> a = 100 count = 0 hap = 0 while a <= 200 : if a % 3 == 0 : print(a) count = count + 1 if count % 5 == 0 : print() a = a + 1 hap = hap + a print("100~200 중 3의 배수의 합 : %d" % hap)

  • 파이썬
  • python
열공123 댓글 1 좋아요 0 조회수 423

파이썬 주파수 추출

미해결

파이썬을 통해 음성 wave파일에서 주파수 값을 추출해서 array 등으로 계산할 수 있도록 하려고 합니다. 그렇게 해서 주파수 대역폭 (최대 - 최소)를 값으로 구하고 싶은데 아무리 구글링을 해도 안나오네요 ㅜㅜ 뭘써야할까요..>?

  • 파이썬
  • 주파수
  • 통신
  • python
한정이 댓글 1 좋아요 0 조회수 1194

파이썬 for~if문 작동원리가 궁금합니다.

미해결

. 여기서 i, j와 v가 무슨 상관인지, 어떤 원리로 서로 작동해서 하단의 결과가 나오는지 알고 싶습니다. 코딩 초보인데 알려주실수 있으신가요?

  • python
  • 파이썬
  • for문
  • if문
  • for~if문
Nicky Kang 댓글 1 좋아요 0 조회수 740

return 과 print 질문

미해결

프로그래밍 시작하기 : 파이썬 입문 (Inflearn Original)

\ def multi(x): y1 = x * 10 y2 = x * 20 y3 = x * 30 print(x * 10, x * 20, x*30) x = 10 multi(x) 강의를 들으면서 궁금한게 생겨서 질문합니다. 예제를 보면 어떤문제는 return 을쓰고 어떤 문제는 쓰지않고 print를 쓰던데 언제 쓰고 안쓰는지 궁금합니다. 2번째문제는 return 값은 전혀사용되지 않았습니다.;; return 'Hello, ', w 로 하면 안되는 건가요?? 마지막 문제는 return 값대신 print를 써서 출력했는데 결과는 같게 나왔습니다. 선생님께서 그냥 2가지 경우가 있다는걸 보여주기 위해 사용하신건가요? 정확하게 알고싶어서 질문합니다.

  • 파이썬
  • python
윤태영 댓글 1 좋아요 0 조회수 484

파이썬 구구단 코드 질문

미해결

프로그래밍 시작하기 : 파이썬 입문 (Inflearn Original)

코딩 으로 구구단 만드는 부분 이해가 잘 안되는 부분이 있어서 질문드립니다. 아래에서 2나오고 밑에서 1~9, 3 나오고 밑에서 1~9가 나온다고 설명해주셨는데 이해가 잘 안되는게 2나오고 밑에서 1나오고 , 3나오고 밑에서 2나오고, 4 나오고 밑에서 3 나와야 하는게 아닌가요? 이해가 잘안되네요 쉽게 설명좀 부탁드립니다. ㅠㅠㅠ for i in range(2, 10): for j in range(1, 10): print('{:4d}'. format(i * j), end='') print()

  • 파이썬
  • python
윤태영 댓글 1 좋아요 0 조회수 574

Lineplot

미해결

안녕하세요. 데이터 시각화에 질문드립니다. 위처럼 그래프를 line으로 그릴경우 노란 부분이 색칠되어 lineplot이 생성됩니다. 혹시 노란색 색칠없이 lineplot 생성하는 법 있을까요?

  • 파이썬
  • lineplot
  • scatterplot
구혜원 댓글 0 좋아요 0 조회수 186

python matplotlib x축이 생략되어 나타납니다.

미해결

import pandas as pd import matplotlib.pyplot as plt # 한글폰트 사용시 그래프에서 마이너스 폰트 깨지는 문제에 대한 대처 plt.rcParams['axes.unicode_minus'] = False plt.rc('font', family='Malgun Gothic') styles = ['-', '--', '-.', ':'] pd.set_option('mode.chained_assignment', None) # df = pd.read _csv('2021-univ-HR.txt',sep='\t',encoding='euc-kr') df1=df.loc[:,["지역","학교유형","설립","대학규모","정규-전담-계","비정규-전담-계","정규-겸직-계","비정규-겸직-계"]] df2=pd.melt(df1, id_vars =['지역'], value_vars=['정규-전담-계','비정규-전담-계']) df3=df2.groupby(['지역','variable']).mean().reset_index() df3.set_index("지역", inplace=True) print(df3) plt.subplot(2,2,1) plt.xticks() df3.groupby("variable")["value"].plot(legend=True, xlabel="지역", ylabel="평균 인원",ax=plt.gca(), rot=45) 위와 같은 코드의 결과가------------------------------- 이렇게 나오는데요 '지역'이 모두 x축에 나타나지 않고 자동적으로 생략되어 나옵니다.. 강원부터 충북까지 모든 지역이 그래프에서 표시되려면 어떻게 해야 할까요??

  • 파이썬
  • python
류예진 댓글 0 좋아요 1 조회수 741

gy-33 tcs3200 센서

미해결

라즈베리파이4를 이용해서 gy-33 tcs3200 컬러감지 센서를 이용하고 싶은데 연결방법과 파이썬코드를 못찾겠어요..알려주시면 감사하겠습니다.

  • 라즈베리파이
  • 파이썬
  • gy-33
  • tcs34725
  • 센서
  • 컬러감지센서
  • tcs3200
백지수 댓글 0 좋아요 0 조회수 334

별건 아니지만 궁금한점

미해결

프로그래밍 시작하기 : 파이썬 입문 (Inflearn Original)

인스타그램, 스포티파이 등등의 프로그램을 파이썬으로 만들었다고 하는데, 이 부분의 경우 파이썬으로'만'한게 아니라 파이썬 + html +css +js 등도 들어가있으나 주력으로 쓴거이 파이썬으로 한건가요? 아니면 파이썬으로'만'으로도 그러한 프로그래밍이 가능했던건가요?

  • 파이썬
  • python
  • 인스타그램
jhj 댓글 1 좋아요 0 조회수 335

yolo v5 labelimg 사진추가 오류

미해결

yolov5에서 labelimg를 사용하는데 labelimg로 라벨링 작업을 한 후, 새로운 이미지들이 생겨 이전에 라벨링 작업을 했던 이미지 폴더에 새로운 이미지들을 추가하여 라벨링 작업을 이어서 했더니, 전에 작업했던 라벨링들이 다 지워지는 현상이 발생했습니다. labelimg를 사용하여 전에 라벨링 작업했던 것과 새로 라벨링 작업한 것을 합쳐도 이런 현상이 발생하는데, labelimg에서 새로운 이미지를 추가하려면 모든 이미지들을 처음부터 라벨링 다시 해야 하나요? 아니면 해결방법이 있을까요?

  • 욜로
  • yolov5
  • labelimg
  • 라벨링
  • labeling
  • 인공지능
  • 파이썬
  • python
  • 욜로v5
wnsgur0473 댓글 0 좋아요 0 조회수 479

파이썬의 '파'자도 모르는 파린이 도와주세요ㅜㅜ

미해결

안녕하세요. 파이썬 배우기 시작한 지 이제 일주일이 된 파린이 입니다 ㅠㅠ 얼떨결에 개발 직무에 배정받게 되어서 임무를 배정받았는데 어떻게 하는 방법을 몰라 질문드립니다. 엑셀파일(csv)이고Time이 1초 단위로 되어 있는데 일단위로 합쳐서 처리하길 바라시는데 방법을 모르겠습니다. 내일까지 완성해야 하는데 정말 막막합니다. 도와주세요 ㅠㅠ - 잠깐! 인프런 서비 스 운영 관련 문의는 1:1 문의하기를 이용해주세요.

  • 데이터전처리
  • 파이썬
  • 데이터
  • 코드
  • 코딩
파린이 댓글 0 좋아요 1 조회수 242

딕셔너리 키-값 같이 출력하는 방법

해결됨

출력: 이렇게 나오게 만들고 싶어서 for, if-elif 문을 사용하였는데 딕셔너리일 때 어떤 식으로 코드를 작성해야 입력 부분의 중복을 없앨 수 있을지 고민입니다.. 전문가님들 고견 부탁드려요! 소중한 시간 내주셔서 감사합니다~~ 출력: 입력: - 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요.

  • 딕셔너리
  • python3
  • 파이썬
  • 질문
준희 김 댓글 1 좋아요 0 조회수 293

데이터 전체에 대한 수익률을 계산하고 싶은데 오류가 뜹니다

미해결

파이썬 증권 데이터 수집과 분석으로 신호와 소음 찾기

배운걸 활용해 Financial Data Reader KRX종목 전부에 대한 수익률을 계산하려고 합니다. #다음 수식으로 FDR df의 "Name"과 "Symbol"만 남겼고 df_dic = df[["Name", "Symbol"]] df_dictionary = df_dic.values df_dictionary #dict 함수를 활용해 numpy array를 dictionary 형태로 변환했습니다. df_list = dict(df_dictionary) df_list #수업에서 배운대로 다음 수식을 적어 상장종목 전부에 대한 종가를 얻으려고 했는데 item_list = [] for item_code in df_list.values(): close = fdr.DataReader(item_code, "2020", "2023")['Close'] item_list.append(close) #다음과 같은 에러메시지가 뜹니다 eyError Traceback (most recent call last) ~\anaconda3\lib\site-packages\pandas\core\indexes\base.py in get_loc (self, key, method, tolerance) 3360 try : -> 3361 return self . _engine . get_loc ( casted_key ) 3362 except KeyError as err : ~\anaconda3\lib\site-packages\pandas\_libs\index.pyx in pandas._libs.index.IndexEngine.get_loc () ~\anaconda3\lib\site-packages\pandas\_libs\index.pyx in pandas._libs.index.IndexEngine.get_loc () pandas\_libs\hashtable_class_helper.pxi in pandas._libs.hashtable.PyObjectHashTable.get_item () pandas\_libs\hashtable_class_helper.pxi in pandas._libs.hashtable.PyObjectHashTable.get_item () KeyError : 'Close' The above exception was the direct cause of the following exception: KeyError Traceback (most recent call last) ~\AppData\Local\Temp/ipykernel_96644/3549058376.py in <module> 1 item_list = [ ] 2 for item_code in df_list . values ( ) : ----> 3 close = fdr . DataReader ( item_code , "2020" , "2023" ) [ 'Close' ] 4 item_list . append ( close ) ~\anaconda3\lib\site-packages\pandas\core\frame.py in __getitem__ (self, key) 3456 if self . columns . nlevels > 1 : 3457 return self . _getitem_multilevel ( key ) -> 3458 indexer = self . columns . get_loc ( key ) 3459 if is_integer ( indexer ) : 3460 indexer = [ indexer ] ~\anaconda3\lib\site-packages\pandas\core\indexes\base.py in get_loc (self, key, method, tolerance) 3361 return self . _engine . get_loc ( casted_key ) 3362 except KeyError as err : -> 3363 raise KeyError ( key ) from err 3364 3365 if is_scalar ( key ) and isna ( key ) and not self . hasnans : KeyError : 'Close' 이거 혹시 2020~2022 사이 종가데이터가 없는 종목이 있어서 그런건가요?

  • 파이썬
  • dict
  • numpy
  • 웹-크롤링
  • fdr
  • python
  • pandas
  • plotly
  • 웹 스크래핑
  • matplotlib
  • seaborn
hmin 댓글 0 좋아요 0 조회수 346

데이터 시각화 도구 소개와 한글폰트 설정 에러

미해결

파이썬 증권 데이터 수집과 분석으로 신호와 소음 찾기

데이터 시각화 도구 소개와 한글폰트 설정 에러 위에 강좌를 실습 중에 에러가 발생합니다. 우분투, 주피터노트북 사용, 나눔바른고딕 폰트 있습니다. 도와주세요!!!! 1. 우분투에 나눔바른고딕 폰트 있음: 제가 실습하는 환경 (base) root@gd-virtual-machine:/usr/share/fonts/truetype/nanum# lsb_release -d Description: Ubuntu 20.04.4 LTS (base) root@gd-virtual-machine:/usr/share/fonts/truetype/nanum# (base) root@gd-virtual-machine:/usr/share/fonts/truetype/nanum# (base) root@gd-virtual-machine:/usr/share/fonts/truetype/nanum# ls NanumBarunGothic.ttf NanumBarunGothic.ttf (base) root@gd-virtual-machine:/usr/share/fonts/truetype/nanum# 2. 에러 발생(강의 코드) def get_font_family(): import platform system_name = platform.system() if system_name == "Darwin" : font_family = "AppleGothic" elif system_name == "Windows": font_family = "Malgun Gothic" else: import matplotlib.font_manager as fm fontpath = '/usr/share/fonts/truetype/nanum/NanumBarunGothic.ttf' font = fm.FontProperties(fname=fontpath, size=9) fm._rebuild() font_family = "NanumBarunGothic" return font_family AttributeError Traceback (most recent call last) /tmp/ipykernel_1662/385091406.py in <module> ----> 1 get_font_family() /tmp/ipykernel_1662/3056356644.py in get_font_family() 11 fontpath = '/usr/share/fonts/truetype/nanum/NanumBarunGothic.ttf' 12 font = fm.FontProperties(fname=fontpath, size=9) ---> 13 fm._rebuild() 14 font_family = "NanumBarunGothic" 15 return font_family AttributeError: module 'matplotlib.font_manager' has no attribute '_rebuild' 3. 에러 발생(수업자료 소스 코드) def get_font_family(): """ 시스템 환경에 따른 기본 폰트명을 반환하는 함수 """ import platform system_name = platform.system() if system_name == "Darwin" : font_family = "AppleGothic" elif system_name == "Windows": font_family = "Malgun Gothic" else: # Linux(colab) !apt-get install fonts-nanum -qq > /dev/null !fc-cache -fv import matplotlib as mpl mpl.font_manager._rebuild() findfont = mpl.font_manager.fontManager.findfont mpl.font_manager.findfont = findfont mpl.backends.backend_agg.findfont = findfont font_family = "NanumBarunGothic" return font_family /usr/share/fonts: caching, new cache contents: 0 fonts, 6 dirs /usr/share/fonts/X11: caching, new cache contents: 0 fonts, 4 dirs /usr/share/fonts/X11/Type1: caching, new cache contents: 8 fonts, 0 dirs /usr/share/fonts/X11/encodings: caching, new cache contents: 0 fonts, 1 dirs /usr/share/fonts/X11/encodings/large: caching, new cache contents: 0 fonts, 0 dirs /usr/share/fonts/X11/misc: caching, new cache contents: 89 fonts, 0 dirs /usr/share/fonts/X11/util: caching, new cache contents: 0 fonts, 0 dirs /usr/share/fonts/cMap: caching, new cache contents: 0 fonts, 0 dirs /usr/share/fonts/cmap: caching, new cache contents: 0 fonts, 5 dirs /usr/share/fonts/cmap/adobe-cns1: caching, new cache contents: 0 fonts, 0 dirs /usr/share/fonts/cmap/adobe-gb1: caching, new cache contents: 0 fonts, 0 dirs /usr/share/fonts/cmap/adobe-japan1: caching, new cache contents: 0 fonts, 0 dirs /usr/share/fonts/cmap/adobe-japan2: caching, new cache contents: 0 fonts, 0 dirs /usr/share/fonts/cmap/adobe-korea1: caching, new cache contents: 0 fonts, 0 dirs /usr/share/fonts/opentype: caching, new cache contents: 0 fonts, 3 dirs /usr/share/fonts/opentype/malayalam: caching, new cache contents: 7 fonts, 0 dirs /usr/share/fonts/opentype/noto: caching, new cache contents: 28 fonts, 0 dirs /usr/share/fonts/opentype/urw-base35: caching, new cache contents: 35 fonts, 0 dirs /usr/share/fonts/truetype: caching, new cache contents: 0 fonts, 50 dirs /usr/share/fonts/truetype/Gargi: caching, new cache contents: 1 fonts, 0 dirs /usr/share/fonts/truetype/Gubbi: caching, new cache contents: 1 fonts, 0 dirs /usr/share/fonts/truetype/Nakula: caching, new cache contents: 1 fonts, 0 dirs /usr/share/fonts/truetype/Navilu: caching, new cache contents: 1 fonts, 0 dirs /usr/share/fonts/truetype/Sahadeva: caching, new cache contents: 1 fonts, 0 dirs /usr/share/fonts/truetype/Sarai: caching, new cache contents: 1 fonts, 0 dirs /usr/share/fonts/truetype/abyssinica: caching, new cache contents: 1 fonts, 0 dirs /usr/share/fonts/truetype/arphic: caching, new cache contents: 0 fonts, 0 dirs /usr/share/fonts/truetype/dejavu: caching, new cache contents: 6 fonts, 0 dirs /usr/share/fonts/truetype/droid: caching, new cache contents: 1 fonts, 0 dirs /usr/share/fonts/truetype/fonts-beng-extra: caching, new cache contents: 6 fonts, 0 dirs /usr/share/fonts/truetype/fonts-deva-extra: caching, new cache contents: 3 fonts, 0 dirs /usr/share/fonts/truetype/fonts-gujr-extra: caching, new cache contents: 5 fonts, 0 dirs /usr/share/fonts/truetype/fonts-guru-extra: caching, new cache contents: 1 fonts, 0 dirs /usr/share/fonts/truetype/fonts-kalapi: caching, new cache contents: 1 fonts, 0 dirs /usr/share/fonts/truetype/fonts-orya-extra: caching, new cache contents: 1 fonts, 0 dirs /usr/share/fonts/truetype/fonts-telu-extra: caching, new cache contents: 2 fonts, 0 dirs /usr/share/fonts/truetype/fonts-yrsa-rasa: caching, new cache contents: 10 fonts, 0 dirs /usr/share/fonts/truetype/freefont: caching, new cache contents: 12 fonts, 0 dirs /usr/share/fonts/truetype/kacst: caching, new cache contents: 15 fonts, 0 dirs /usr/share/fonts/truetype/kacst-one: caching, new cache contents: 2 fonts, 0 dirs /usr/share/fonts/truetype/lao: caching, new cache contents: 1 fonts, 0 dirs /usr/share/fonts/truetype/liberation: caching, new cache contents: 16 fonts, 0 dirs /usr/share/fonts/truetype/liberation2: caching, new cache contents: 12 fonts, 0 dirs /usr/share/fonts/truetype/lohit-assamese: caching, new cache contents: 1 fonts, 0 dirs /usr/share/fonts/truetype/lohit-bengali: caching, new cache contents: 1 fonts, 0 dirs /usr/share/fonts/truetype/lohit-devanagari: caching, new cache contents: 1 fonts, 0 dirs /usr/share/fonts/truetype/lohit-gujarati: caching, new cache contents: 1 fonts, 0 dirs /usr/share/fonts/truetype/lohit-kannada: caching, new cache contents: 1 fonts, 0 dirs /usr/share/fonts/truetype/lohit-malayalam: caching, new cache contents: 1 fonts, 0 dirs /usr/share/fonts/truetype/lohit-oriya: caching, new cache contents: 1 fonts, 0 dirs /usr/share/fonts/truetype/lohit-punjabi: caching, new cache contents: 1 fonts, 0 dirs /usr/share/fonts/truetype/lohit-tamil: caching, new cache contents: 1 fonts, 0 dirs /usr/share/fonts/truetype/lohit-tamil-classical: caching, new cache contents: 1 fonts, 0 dirs /usr/share/fonts/truetype/lohit-telugu: caching, new cache contents: 1 fonts, 0 dirs /usr/share/fonts/truetype/lyx: caching, new cache contents: 11 fonts, 0 dirs /usr/share/fonts/truetype/malayalam: caching, new cache contents: 10 fonts, 0 dirs /usr/share/fonts/truetype/nanum: caching, new cache contents: 31 fonts, 0 dirs /usr/share/fonts/truetype/noto: caching, new cache contents: 2 fonts, 0 dirs /usr/share/fonts/truetype/openoffice: caching, new cache contents: 1 fonts, 0 dirs /usr/share/fonts/truetype/padauk: caching, new cache contents: 4 fonts, 0 dirs /usr/share/fonts/truetype/pagul: caching, new cache contents: 1 fonts, 0 dirs /usr/share/fonts/truetype/samyak: caching, new cache contents: 1 fonts, 0 dirs /usr/share/fonts/truetype/samyak-fonts: caching, new cache contents: 3 fonts, 0 dirs /usr/share/fonts/truetype/sinhala: caching, new cache contents: 1 fonts, 0 dirs /usr/share/fonts/truetype/tibetan-machine: caching, new cache contents: 1 fonts, 0 dirs /usr/share/fonts/truetype/tlwg: caching, new cache contents: 58 fonts, 0 dirs /usr/share/fonts/truetype/ttf-bitstream-vera: caching, new cache contents: 10 fonts, 0 dirs /usr/share/fonts/truetype/ttf-khmeros-core: caching, new cache contents: 2 fonts, 0 dirs /usr/share/fonts/truetype/ubuntu: caching, new cache contents: 14 fonts, 0 dirs /usr/share/fonts/type1: caching, new cache contents: 0 fonts, 1 dirs /usr/share/fonts/type1/urw-base35: caching, new cache contents: 35 fonts, 0 dirs /root/anaconda3/fonts: skipping, no such directory /root/.local/share/fonts: skipping, no such directory /root/.fonts: skipping, no such directory /usr/share/fonts/X11: skipping, looped directory detected /usr/share/fonts/cMap: skipping, looped directory detected /usr/share/fonts/cmap: skipping, looped directory detected /usr/share/fonts/opentype: skipping, looped directory detected /usr/share/fonts/truetype: skipping, looped directory detected /usr/share/fonts/type1: skipping, looped directory detected /usr/share/fonts/X11/Type1: skipping, looped directory detected /usr/share/fonts/X11/encodings: skipping, looped directory detected /usr/share/fonts/X11/misc: skipping, looped directory detected /usr/share/fonts/X11/util: skipping, looped directory detected /usr/share/fonts/cmap/adobe-cns1: skipping, looped directory detected /usr/share/fonts/cmap/adobe-gb1: skipping, looped directory detected /usr/share/fonts/cmap/adobe-japan1: skipping, looped directory detected /usr/share/fonts/cmap/adobe-japan2: skipping, looped directory detected /usr/share/fonts/cmap/adobe-korea1: skipping, looped directory detected /usr/share/fonts/opentype/malayalam: skipping, looped directory detected /usr/share/fonts/opentype/noto: skipping, looped directory detected /usr/share/fonts/opentype/urw-base35: skipping, looped directory detected /usr/share/fonts/truetype/Gargi: skipping, looped directory detected /usr/share/fonts/truetype/Gubbi: skipping, looped directory detected /usr/share/fonts/truetype/Nakula: skipping, looped directory detected /usr/share/fonts/truetype/Navilu: skipping, looped directory detected /usr/share/fonts/truetype/Sahadeva: skipping, looped directory detected /usr/share/fonts/truetype/Sarai: skipping, looped directory detected /usr/share/fonts/truetype/abyssinica: skipping, looped directory detected /usr/share/fonts/truetype/arphic: skipping, looped directory detected /usr/share/fonts/truetype/dejavu: skipping, looped directory detected /usr/share/fonts/truetype/droid: skipping, looped directory detected /usr/share/fonts/truetype/fonts-beng-extra: skipping, looped directory detected /usr/share/fonts/truetype/fonts-deva-extra: skipping, looped directory detected /usr/share/fonts/truetype/fonts-gujr-extra: skipping, looped directory detected /usr/share/fonts/truetype/fonts-guru-extra: skipping, looped directory detected /usr/share/fonts/truetype/fonts-kalapi: skipping, looped directory detected /usr/share/fonts/truetype/fonts-orya-extra: skipping, looped directory detected /usr/share/fonts/truetype/fonts-telu-extra: skipping, looped directory detected /usr/share/fonts/truetype/fonts-yrsa-rasa: skipping, looped directory detected /usr/share/fonts/truetype/freefont: skipping, looped directory detected /usr/share/fonts/truetype/kacst: skipping, looped directory detected /usr/share/fonts/truetype/kacst-one: skipping, looped directory detected /usr/share/fonts/truetype/lao: skipping, looped directory detected /usr/share/fonts/truetype/liberation: skipping, looped directory detected /usr/share/fonts/truetype/liberation2: skipping, looped directory detected /usr/share/fonts/truetype/lohit-assamese: skipping, looped directory detected /usr/share/fonts/truetype/lohit-bengali: skipping, looped directory detected /usr/share/fonts/truetype/lohit-devanagari: skipping, looped directory detected /usr/share/fonts/truetype/lohit-gujarati: skipping, looped directory detected /usr/share/fonts/truetype/lohit-kannada: skipping, looped directory detected /usr/share/fonts/truetype/lohit-malayalam: skipping, looped directory detected /usr/share/fonts/truetype/lohit-oriya: skipping, looped directory detected /usr/share/fonts/truetype/lohit-punjabi: skipping, looped directory detected /usr/share/fonts/truetype/lohit-tamil: skipping, looped directory detected /usr/share/fonts/truetype/lohit-tamil-classical: skipping, looped directory detected /usr/share/fonts/truetype/lohit-telugu: skipping, looped directory detected /usr/share/fonts/truetype/lyx: skipping, looped directory detected /usr/share/fonts/truetype/malayalam: skipping, looped directory detected /usr/share/fonts/truetype/nanum: skipping, looped directory detected /usr/share/fonts/truetype/noto: skipping, looped directory detected /usr/share/fonts/truetype/openoffice: skipping, looped directory detected /usr/share/fonts/truetype/padauk: skipping, looped directory detected /usr/share/fonts/truetype/pagul: skipping, looped directory detected /usr/share/fonts/truetype/samyak: skipping, looped directory detected /usr/share/fonts/truetype/samyak-fonts: skipping, looped directory detected /usr/share/fonts/truetype/sinhala: skipping, looped directory detected /usr/share/fonts/truetype/tibetan-machine: skipping, looped directory detected /usr/share/fonts/truetype/tlwg: skipping, looped directory detected /usr/share/fonts/truetype/ttf-bitstream-vera: skipping, looped directory detected /usr/share/fonts/truetype/ttf-khmeros-core: skipping, looped directory detected /usr/share/fonts/truetype/ubuntu: skipping, looped directory detected /usr/share/fonts/type1/urw-base35: skipping, looped directory detected /usr/share/fonts/X11/encodings/large: skipping, looped directory detected /root/anaconda3/var/cache/fontconfig: cleaning cache directory /root/.cache/fontconfig: not cleaning non-existent cache directory /root/.fontconfig: not cleaning non-existent cache directory fc-cache: succeeded --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) /tmp/ipykernel_1662/385091406.py in <module> ----> 1 get_font_family() /tmp/ipykernel_1662/3296694249.py in get_font_family() 16 17 import matplotlib as mpl ---> 18 mpl.font_manager._rebuild() 19 findfont = mpl.font_manager.fontManager.findfont 20 mpl.font_manager.findfont = findfont AttributeError: module 'matplotlib.font_manager' has no attribute '_rebuild'

  • 데이터시각화
  • pandas
  • 한글폰트
  • python
  • 우분투
  • 웹-크롤링
  • 파이썬
  • numpy
  • seaborn
  • matplotlib
  • 웹 스크래핑
  • plotly
amethis 댓글 1 좋아요 1 조회수 2329

3:55분부터 이해가 안갑니다

미해결

제주코딩베이스캠프 Code Festival: Python 100제

3:55분부터 뒤에 내용이 이해가 잘 안갑니다. 0번째가 무슨 말이고 왜 (4,5,6)이 제일 큰지 궁금하고 왜 9반 리턴해주는지 이해가 안가는 말이 너무 많은데 무슨 내용을 설명해주실려고 했는지 글로 다시 설명해주실수 있나요?

  • 파이썬
  • python
  • 코테 준비 같이 해요!
SH K 댓글 0 좋아요 0 조회수 297

긍정/부정 속성을 함께 표현한 워드클라우드 만들기

미해결

안녕하세요. 형태소 분석을 통해 워드클라우드를 만드는 중에 궁금한 점이 있어서 문의 남깁니다. 정말 많은 검색을 해봤음에도 제 능력이 부족한지 원하는 결과를 찾지 못했습니다. 제가 표현하고 싶은 것은 아래의 그림과 같이 하나의 워드클라우드 안에서 긍정 키워드와 부정 키워드를 다른 색상으로 표현하고 싶습니다. 아래의 그림은 영어로 워드클라우드를 추출하였으나, 저는 한글로 만드는 방법을 알고 싶습니다. 이렇게 하나의 워드클라우드 내에서 색상으로 긍정/부정 키워드를 구분할 수 있는 방법을 알려주시면 감사드리겠습니다!

  • 워드클라우드
  • 파이썬
  • 형태소
dok2un18 댓글 0 좋아요 0 조회수 465

파이썬 메모장 종료

미해결

def info() : messagebox.showinfo("QUIT","종료하시겠습니까?") menu_file.add_command(label="종료하기", command=info) 이때 메모장에서 메시지박스가 떴을 때 확인 버튼을 누를 경우 실제로 종료가 되려면 어떤 코드를 추가해야할까요??

  • tktinter
  • 파이썬
  • 메모장
  • gui
정현우 댓글 0 좋아요 0 조회수 231

파이썬 코드 오류 관련 질문

미해결

코드를 이렇게 짜서 했더니 계속 오류가 발생하는데 어느 부분이 잘못된건지 모르겠습니다..

  • 파이썬
  • 통게
박상수 댓글 0 좋아요 0 조회수 168

인기 태그

인프런 TOP Writers

주간 인기글