I have two dataframes with different column names. I want to create a new dataframe whose column names are the concatenation of the two dataframes columns. The resulting number of rows will be all the possible combinations (n_rows choose 2) between rows of the two datasets.
df1 = pd.DataFrame({'A': ['1', '2']})
df2 = pd.DataFrame({'B': ['a', 'b', 'c']})
will generate
df3 = pd.DataFrame({'A': ['1', '1', '1', '2', '2', '2'],
'B': ['a', 'b', 'c', 'a', 'b', 'c']})