[오늘의 에러] AttributeError: 'DataFrame' object has no attribute 'profile_report'

ssook·2021년 8월 25일
2

오늘의 에러

목록 보기
15/18


구글 코랩에서 판다스 프로파일링을 쓰다가 이러한 에러가 나왔다...🤯
찾아보니 생각보다 많이 겪는 에러인 거 같았다ㅎㅎ

📍 에러 이름

AttributeError: 'DataFrame' object has no attribute 'profile_report'
한글로 번역하면, 'DataFrame' 개체에 'profile_report' 속성이 없습니다. 에러이다.

📍 에러 이유

구글 코랩에 자동으로 설치되어 있는 pandas-profiling의 버전이 낮아 발생하는 에러이다. 그렇다면 당연히 레포트를 생성해 쓰기 위해서는 버전을 높여주면 된다!!

📍 해결 방법

!pip install -U pandas-profiling

이 코드를 실행시켜주면 에러 없이 제대로 실행되는 것을 확인할 수 있다.

✔️ 참고한 사이트

AttributeError: 'DataFrame' object has no attribute 'profile_report' #183

profile
1년차 주니어 개발자입니다~~~~

0개의 댓글