inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

공공데이터로 파이썬 데이터 분석 시작하기

[9/20] 그룹화한 데이터 판다스의 시각화 기능을 사용해서 다양한 형태로 표현하기

1.7.1 질문

334

작성자 없음

작성한 질문수 0

1

import matplotlib.pyplot as plt

plt.rc("font", family="Malgun Gothic")

--------------------------

ImportError                               Traceback (most recent call last)
<ipython-input-156-35cb1a0cfeb3> in <module>
----> 1 import matplotlib.pyplot as plt
      2 
      3 plt.rc("font", family="Malgun Gothic")
      4 #plt.rc("font", family="Malgun Gothic")

C:\Anaconda\lib\site-packages\matplotlib\pyplot.py in <module>
     34 from cycler import cycler
     35 import matplotlib
---> 36 import matplotlib.colorbar
     37 import matplotlib.image
     38 from matplotlib import rcsetup, style

C:\Anaconda\lib\site-packages\matplotlib\colorbar.py in <module>
     42 import matplotlib.collections as collections
     43 import matplotlib.colors as colors
---> 44 import matplotlib.contour as contour
     45 import matplotlib.cm as cm
     46 import matplotlib.gridspec as gridspec

C:\Anaconda\lib\site-packages\matplotlib\contour.py in <module>
     15 import matplotlib.collections as mcoll
     16 import matplotlib.font_manager as font_manager
---> 17 import matplotlib.text as text
     18 import matplotlib.cbook as cbook
     19 import matplotlib.mathtext as mathtext

C:\Anaconda\lib\site-packages\matplotlib\text.py in <module>
     14 from .font_manager import FontProperties
     15 from .patches import FancyArrowPatch, FancyBboxPatch, Rectangle
---> 16 from .textpath import TextPath  # Unused, but imported by others.
     17 from .transforms import (
     18     Affine2D, Bbox, BboxBase, BboxTransformTo, IdentityTransform, Transform)

C:\Anaconda\lib\site-packages\matplotlib\textpath.py in <module>
      9 from matplotlib.font_manager import FontProperties, get_font
     10 from matplotlib.ft2font import LOAD_NO_HINTING, LOAD_TARGET_LIGHT
---> 11 from matplotlib.mathtext import MathTextParser
     12 from matplotlib.path import Path
     13 from matplotlib.transforms import Affine2D

C:\Anaconda\lib\site-packages\matplotlib\mathtext.py in <module>
     25 
     26 import numpy as np
---> 27 from PIL import Image
     28 from pyparsing import (
     29     Combine, Empty, FollowedBy, Forward, Group, Literal, oneOf, OneOrMore,

~\AppData\Roaming\Python\Python38\site-packages\PIL\Image.py in <module>
     92     # Also note that Image.core is not a publicly documented interface,
     93     # and should be considered private and subject to change.
---> 94     from . import _imaging as core
     95 
     96     if __version__ != getattr(core, "PILLOW_VERSION", None):

ImportError: cannot import name '_imaging' from 'PIL' (C:\Users\SM\AppData\Roaming\Python\Python38\site-packages\PIL\__init__.py)

이런 import error가 나는데 왜그런지 모르겠습니다 Pillow는 이미 설치되어있어요.. 구글링 해봤는데 해결을 못해서 질문드립니다.!

numpy python pandas

답변 3

1

kahs.game

감사합니다! matpotlib 설치되어있는 건줄 알았어요 해결되었습니다 감사해요~

0

박조은

잘 해결되었다니 다행이에요! 감사합니다 :)

0

박조은

안녕하세요.

matplotlib 은 설치가 되었을까요?

matplotlib  이 제대로 설치되었는지 먼저 확인이 필요할것 같아요.

또, 아나콘다를 통해 설치해 주셨는지 따로 설치해 주셨는지도 궁금합니다.

패키지 설치 에러 ydata-profiling

0

120

2

자세한 설명 부탁드려요 ㅜ

0

176

2

seaborn 라이브러리 호출하였으나 그래프가 안 그려져요

0

286

2

value_counts와 count 차이

0

341

2

안녕하세요 데이터 최신과 관련해서 문의드립니다.

0

205

3

scatterplot질문

0

122

1

강의 화면이 안나옵니다

0

164

2

4분12초 2013년부터 데이터가 없으면 어떻게하나요?..

0

188

2

에러 메시지

1

303

2

그래프 색이 동일하게 나옵니다.

0

308

2

시각화 라이브러리 비교

0

382

2

주피터 노트북 설치

0

390

1

2. 상가 기술통계 아웃풋 자료에서 오류가 납니다

0

226

1

14. distplot g = sns.FacetGrid(df_last, row="지역명", height=1.7, aspect=4) g.map(sns.distplot, "평당분양가격", hist=False, rug=True); 오류

0

178

1

group by agg function failed 에러

0

687

2

빈도수가 1000개 이상인 데이터를 따로 담을 때 코드 질문 있습니다.

0

288

2

주피터 노트북 실행 했는데 앞에 *가 생기고 결과가 나오지 않아요

0

363

3

get_string함수에서 문자 'nan'

0

200

1

seaborn X축 시작 지점 조정 질의의 건

0

213

1

14강 distplot 질의

0

289

1

nbextension 설치 및 셋팅 후 적용이 안되는 이슈

0

477

1

corr = df.corr() 입력시 오류

1

372

1

keyword grid_b is not recognized

0

334

1

%ls data 매직커맨드 사용시 한글 깨짐

0

292

1