Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

dataframe concatenate

# Pandas for Python

df['col1 & col2'] = df['col1']+df['col2']

#Output
#col1	col2	col1 & col2
#A1		A2		A1A2
#B1		B2		B1B2
Source by datacarpentry.org #
 
PREVIOUS NEXT
Tagged: #dataframe #concatenate
ADD COMMENT
Topic
Name
8+7 =