Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は pandas データフレーム (100x10) を持っています。各列はある数量を表し、t-test を使用してすべての列をペアワイズ テストしたいと考えています。列をループする代わりに:
stats.ttest_rel(df.iloc[:,i], df.iloc[:,j])
どこでi!=j、それを行うためのよりクリーンな方法はありますか? 相関に似たもの:
i!=j
df.corr()
ここで、すべてのペアワイズ相関を計算します。