如何在python中以有效方式将DataFrame附加到自身?

时间:2018-07-16 06:30:42

标签: python pandas dataframe data-analysis

我想将DF附加到自身。 有没有比我更有效的方法?

SomeDF #this is a dataframe
df1 = pd.DataFrame.copy(SomeDF)
df2 = pd.DataFrame.copy(SomeDF)
SomeDF = SomeDF .append(df1, ignore_index=True)
SomeDF = SomeDF .append(df2, ignore_index=True)

谢谢。

0 个答案:

没有答案