将同一个dataframe对象多倍复制且添加在原dataframe后
df_2 = pd.DataFrame(np.arange(25).reshape(5,5))
for i in range(len(df_2)):
a = df_2.loc[i]
d = pd.DataFrame(a).T
df_2 = df_2.append([d]*24) #每行复制24倍
print(df_2)
df_2 = pd.DataFrame(np.arange(25).reshape(5,5))
for i in range(len(df_2)):
a = df_2.loc[i]
d = pd.DataFrame(a).T
df_2 = df_2.append([d]*24) #每行复制24倍
print(df_2)