강의

멘토링

커뮤니티

Inflearn Community Q&A

webpro77's profile image
webpro77

asked

[After Work Side Projects] Big Data Analytics Engineer Practical Exam (Task Types 1, 2, 3)

Loading Libraries and Data and EDA (Old)

워닝 문제

Resolved

Written on

·

2.4K

0

  • <ipython-input-25-475204a37c2b>:2: FutureWarning: The default value of numeric_only in DataFrame.corr is deprecated. In a future version, it will default to False. Select only valid columns or specify the value of numeric_only to silence this warning. X_train.corr()

워닝이 뜨는데 어떻게 해결해야 하는걸까요....

python머신러닝빅데이터pandas빅데이터분석기사

Answer 2

0

happyarche님의 프로필 이미지
happyarche
Questioner

감사합니다~

0

roadmap님의 프로필 이미지
roadmap
Instructor

📌 워닝을 완전히 해결하는 방법 : corr(numeric_only=True) 수치형 데이터만 사용하겠다는 의미입니다. 기본값은 (numeric_only=False) 입니다.

📌 발생하는 원인: 판다스 버전이 업데이트 되면서부터 해당 워닝이 발생하고 있음 numeric_only 라고 에러메세지에 포함이 되어 있으면 동일합니다. 워닝은 무시해도 무방하나 그래도 해결방법은 알고 있는 것이 좋음

📌 시험환경에서는? : 시험환경(현 기준 버전)에서는 해당 워닝이 발생하지 않아요! 다만 시험에서 사용가능 라이브러리와 버전은 시험 직전에 공개하고 있어요

webpro77's profile image
webpro77

asked

Ask a question