728x90 FutureWarning2 [Jupyter Notebook] FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. (후략) 제목과 같은 Warning 메시지를 확인한 코드는 아래와 같다. import pandas as pd data = { 'name' : ['영수','철수','영희','소희'], 'age' : [20,15,38,8] } df = pd.DataFrame(data) doc = { 'name':'세종', 'age':14, } df = df.append(doc,ignore_index=True) df 상기 코드로 발생한 Warning 메시지 원문은 아래와 같다. FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead. df = df.appe.. Python 2022. 11. 25. [Jupyter Notebook] FutureWarning: Passing a set as an indexer is deprecated and will raise in a future version. Use a list instead. new_df = df[{'name', 'current_price'}] Pandas 모듈을 import pandas as pd 선언으로 불러온 후 앞선 작업으로 생성했던 DataFrame에서 new_df = df[{'name', 'current_price'}] 입력하고 확인하기 위해 new_df 입력 후 Crtl + Enter 실행하니 제목과 같은 Warning 메시지가 나타났다. FutureWarning: Passing a set as an indexer is deprecated and will raise in a future version. Use a list instead. new_df = df[{'name', 'current_price'}] 메시지를 보니 df[{'name', 'current_price'}] Syntax는 더 이상 유지보수 되지 않는다는 (deprec.. Python 2022. 11. 24. 이전 1 다음 💲 추천 글 반응형 SMALL