I have an np.array of size 500 x 15. How can I generate a new np array with all possible pair-wise combination of 2 columns from this array?
arr = [ [col1],[col2],[col3],..., [col14]]
I want output such that it generates combination as
[[col1],[col2]]
[[col1],[col3]]
.
.
[[col13],[col14]]
I can't find a way to select all column values in the output. For an array having 15 columns there should be N*(N-1) i.e. 15 * 14 = 210 pairs.