您可以放入
df_try列表中,然后执行以下 *** 作:
>>> df.append([df_try]*5,ignore_index=True) Store Dept Date Weekly_Sales IsHoliday0 1 1 2010-02-05 24924.50 False1 1 1 2010-02-12 46039.49 True2 1 1 2010-02-19 41595.55 False3 1 1 2010-02-26 19403.54 False4 1 1 2010-03-05 21827.90 False5 1 1 2010-03-12 21043.39 False6 1 1 2010-03-19 22136.64 False7 1 1 2010-03-26 26229.21 False8 1 1 2010-04-02 57258.43 False9 1 1 2010-02-12 46039.49 True10 1 1 2010-02-12 46039.49 True11 1 1 2010-02-12 46039.49 True12 1 1 2010-02-12 46039.49 True13 1 1 2010-02-12 46039.49 True
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)