
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
코드스니펫: 회사코드
복붙해서 실행하니, 아래와 같은 경고 문구가 출력됩니다.
<ipython-input-55-6e89e583dc80>:10: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
df = df.append(row, ignore_index = True)
어떻게 수정해서 사용해야 할까요? 아래는 에러로 실행이 안되네요.
df = df.concat(row, ignore_index = True)
작성한 코드 및 에러 메세지
df = pd.DataFrame()
codes = ['AAPL','ABNB','BIDU','META','GOOG','MSFT','TSLA','PYPL','NFLX','NVDA']
for code in codes:
#print(code)
try:
row = add_company(code)
print(row)
df = df.append(row, ignore_index = True)
except:
print(f'error - {code}')
df
Tip 1) </> 아이콘을 눌러 코드박스를 만들어 보세요.
Tip 2) Ctrl+A(맥의 경우 Command+A) 단축키로 코드를 한 번에 선택할 수 있어요!
