import pandas as pd
import scipy.stats
import numpy as np
df_a = pd.read_clibpoard()
df_b = df_a + np.random.randn(5, 7)
df_c = df_a + np.random.randn(5, 7)
_, p_b = scipy.stats.ttest_ind(df_a.dropna(axis=0), df_b.dropna(axis=0))
_, p_c = scipy.stats.ttest_ind(df_a.dropna(axis=0), df_c.dropna(axis=0))
pd.DataFrame([p_b, p_c], columns=df_a.columns, index=['df_b', 'df_c'])
t test on Pandas dataframes and make a new matrix of resulting p values