【发布时间】:2021-04-27 21:22:22
【问题描述】:
【问题讨论】:
-
如何只追加最后一行?
标签: python pandas dataframe append
【问题讨论】:
标签: python pandas dataframe append
df_new = df_new.append(df.tail(1))
如果 df_new 没有定义。下面的代码就可以了。
df_new = df.tail(1)
【讨论】: