merging df vertically code example
Example: merging df vertically
'''
if df1 is
col1 col2
1 2
3 4
if df2 is
col1 col2
5 6
7 8
'''
df1.append(df2, ignore_index=True)
'''
col1 col2
1 2
3 4
5 6
7 8
'''
'''
if df1 is
col1 col2
1 2
3 4
if df2 is
col1 col2
5 6
7 8
'''
df1.append(df2, ignore_index=True)
'''
col1 col2
1 2
3 4
5 6
7 8
'''