DataFrame 마스터하기문자 데이터 가공하기대소문자 처리하기
이상한 오류가 발생해요
조회 875
좋아요 1
2024년 6월 19일(2024년 6월 19일 수정됨)
김민준
1
댓글 1개
0
채택된 답변 수 948
댓글 1개
이 명령어를 처 봤는데 여전히 저런 멘트가 나오는데..
문제는 없는거죠?
A value is trying to be set on a copy of a slice from a DataFrame.
Try using .loc[row_indexer,col_indexer] = value instead
See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy
airbnb_df.loc[:,'city'] = airbnb_df['location'].str.split(',').str[1]