1import pandas as pd
2import numpy as np
3
4shape = (50, 4460)
5
6data = np.random.normal(size=shape)
7
8data[:, 1000] += data[:, 2000]
9
10df = pd.DataFrame(data)
11
12c = df.corr().abs()
13
14s = c.unstack()
15so = s.sort_values(kind="quicksort")
16
17print so[-4470:-4460]