Col.append('1col_' + str(i + 1) + '_2col_' + str(j + 1))
return pd.DataFrame(MM, dtype=int, columns=Col)
How to multiply every column of one Pandas Dataframe with every column of another Dataframe efficiently?