How do I add two columns in panda?
Combine Two Columns Using + Operator
By use + operator simply you can combine/merge two or multiple text/string columns in pandas DataFrame. Note that when you apply + operator on numeric columns it actually does addition instead of concatenation.
How do I add a column to an existing data frame?
Using assign()
assign() method can be used when you need to insert multiple new columns in a DataFrame, when you need to ignore the index of the column to be added or when you need to overwrite the values of an existing columns. Always remember that with assign: the index of the column to be added is ignored.