I have two DF with a structure like that:
df1 = pd.DataFrame(np.random.randn(8, 4), columns=['A', 'B', 'C', 'D'])
df2 = pd.DataFrame(np.random.randn(8, 6), columns=['T', 'U', 'V', 'X','Y','Z'])
I would like to test the correlation ('pearson') between every single column of DF1 with every single column of DF2. Then combine all the results into one correlation matrix.
A similar question has been asked in the past but my DF1 has several columns:
Correlation between two dataframes
Any help on how to do this will be great.