오류 노트 can not find module

Seona Choi·2023년 9월 29일

오류 노트

목록 보기
2/4

ImportError: No module named statsmodels

#outlier 동떨어져있는 데이터를 다루는 방법
sns.set_style("darkgrid")
sns.lmplot(
    x="x",
    y="y",
    data=anscombe.query("dataset == 'III'"), 
    robust=True, #이 부분에서 오류 발생
    ci=None,
    height=7,
    scatter_kws={"s": 80})
plt.show()

robust를 사용하려면 statsmodule을 사용할 수 있어야 함
conda install statsmodels를 통해 패키지 설치 후 성공

profile
자믿노가

0개의 댓글