2유형 랜덤포레스트 회귀 작업중 워닝 메시지
데이터 결측치 전처리 하는데
이렇게 코드 작업을 했더니 워닝 메시지가 뜨는데
시험환경에서도 수정이 필요할까요?
# 데이터 전처리 _ 결측치 대체 df['fuel_type'].fillna(df['fuel_type'].mode()[0], inplace = True) df['accident'].fillna(df['accident'].mode()[0], inplace = True) df['clean_title'].fillna(df['clean_title'].mode()[0], inplace = True)
[워닝메시지]
<ipython-input-37-b2145d16d236>:15: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method. The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy. For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object. df['fuel_type'].fillna(df['fuel_type'].mode()[0], inplace = True)
답변 1
작업형2모의문제3_updated2026.10
0
10
1
작업형2 모의문제3_updated2026.10
0
12
2
38강에서 불균형 데이터 처리하는 stratify를 꼭 해줘야하는건지 질문합니다.
0
14
2
수강강의 연장 관련 문의
0
17
1
작업형1_연습문제1 section2
0
20
2
수강기간 연장 문의드립니다
0
22
1
작업형2 모의문제2_updated2026.10
0
31
2
수강기간 연장문의
0
25
1
작업형 2 질문
0
33
2
강의 연장 관련하여 문의드립니다.
0
38
1
섹션7 자료 다운로드
0
41
2
작업형 1 연습문제 Section12
0
40
2
수강기간 연장 문의
0
52
1
안녕하세요, 혹시 수강기간 연장이 가능할까요?
0
45
2
판다스 강의자료는 어디서 받을 수 있나요?
0
54
2
작업형2 모의고사3 자료 업데이트 요청
0
60
4
수강 연장가능여부 문의드립니다!
0
50
2
수강기간 연장 문의드립니다!
0
44
2
최빈값
0
48
2
수강 가이드라인
0
41
2
수강 연장 가능 여부 문의
0
65
2
강의 구매했는데 교재 필수일까요
0
49
2
수강기간 연장 가부 문의드립니다.
0
45
2
수강기간 연장이 가능한지 양해를 구하며 문의를 드립니다.
0
46
2





