Answers for "concatenate two pandas columns"

2

python merge strings in columns

df["period"] = df["Year"].astype(str) + df["quarter"]
Posted by: Guest on October-19-2020
2

merge two columns pandas

df["period"] = df["Year"] + df["quarter"]
Posted by: Guest on May-10-2020
6

dataframe concatenate

# Pandas for Python

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

#Output
#col1	col2	col1 & col2
#A1		A2		A1A2
#B1		B2		B1B2
Posted by: Guest on April-17-2020

Code answers related to "concatenate two pandas columns"

Python Answers by Framework

Browse Popular Code Answers by Language