I am looking for python code to paste value strings of two dataframes with identical column names, dimensions and datatype (Strings).
I want to create a new dataframe by pasting each element of DF1 & DF2 together which is in the corresponding location within each dataframe and have a "," delimiter between each string.
Input dataframes (DF1 & DF2) and expected output
Equivalent R code would be using matrices: matrix(paste(DF1,DF2, sep=";"),nrow = nrow(DF1), dimnames=dimnames(DF1))
Is there a way to do this with python? Appears like it should be simple but thanks in advance!