Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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
'''
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #merging #df #vertically
ADD COMMENT
Topic
Name
9+2 =