每日博客

python

df_xchange = df_xchange.append(pd.Series(row,columns),ignore_index=True)

FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.

解决方案——将以上代码修改为:

df_xchange = pd.concat([df_xchange,pd.Series(row,columns)],ignore_index=True)

 

posted @ 2022-05-20 20:36  谦寻  阅读(344)  评论(0编辑  收藏  举报