I have 2 sets Set_1= {HH, HT, TT, TH} and Set_2 = {1, 2, 3, 4}. These are the initial column values and names.
I want to expand this 4X2 dataset to a 4X 4 such that the new data set is a 'Cartesian Product' like so:
Set_1 | Set_2 |
HH | 1 |
HH | 2 |
HH | 3 |
HH | 4 |
HT | 1 |
I don't have a Dataset yet & I have to construct one, so I couldn't post one here. I am also aware of the command
Code:
cross
Do help and thank you, in advance!
0 Response to Cartesian product of Columns
Post a Comment