1import pandas as pd
2
3In [603]: df = pd.DataFrame({'col1':list("abc"),'col2':range(3)},index = range(3))
4
5In [604]: df
6Out[604]:
7 col1 col2
80 a 0
91 b 1
102 c 2
11
12In [605]: pd.concat([df]*3, ignore_index=True) # Ignores the index
13Out[605]:
14 col1 col2
150 a 0
161 b 1
172 c 2
183 a 0
194 b 1
205 c 2
216 a 0
227 b 1
238 c 2
24
25In [606]: pd.concat([df]*3)
26Out[606]:
27 col1 col2
280 a 0
291 b 1
302 c 2
310 a 0
321 b 1
332 c 2
340 a 0
351 b 1
362 c 2